[PATCH] D103006: [lld][MachO] Add support for LC_DATA_IN_CODE

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 13 23:51:20 PDT 2021


int3 added inline comments.


================
Comment at: lld/test/MachO/data-in-code.s:7
+# RUN: %lld %t/basic.o -o %t/basic
+# RUN: llvm-objdump --private-headers %t/basic > %t/objdump
+# RUN: llvm-objdump --macho --data-in-code %t/basic >> %t/objdump
----------------
alexshap wrote:
> int3 wrote:
> > if you just need this to capture the address of `__text`, `llvm-objdump --macho --section-headers` produces terser output
> the output of --private-headers is also used for checking LC_DATA_IN_CODE
ah. I feel like that's covered by `llvm-objdump --data-in-code` already, but I'm fine either way


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103006/new/

https://reviews.llvm.org/D103006



More information about the llvm-commits mailing list