diff options
author | Nico Weber <thakis@chromium.org> | 2022-08-15 09:06:57 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2022-08-15 10:58:52 -0400 |
commit | 940e178c0018b32af2f1478d331fc41a92a7dac7 (patch) | |
tree | ad7d2d9517d7d679444f196caffead76385c6955 /llvm/docs/CommandGuide | |
parent | e114ecc5feafe849cbaf1a1df49dc7b3650f06ba (diff) | |
download | llvm-940e178c0018b32af2f1478d331fc41a92a7dac7.zip llvm-940e178c0018b32af2f1478d331fc41a92a7dac7.tar.gz llvm-940e178c0018b32af2f1478d331fc41a92a7dac7.tar.bz2 |
[llvm-objdump] Start on -chained_fixups for llvm-otool
And --chained-fixups for llvm-objdump.
For now, this only prints the dyld_chained_fixups_header and adds
plumbing for the flag. This will be expanded in future commits.
When Apple's effort to upstream their chained fixups code continues,
we'll replace this code with the then-upstreamed code. But we need
something in the meantime for testing ld64.lld's chained fixups
code.
Update chained-fixups.yaml with a file that actually contains
the chained fixup data (`LinkEditData` doesn't encode it yet,
so use `__LINKEDIT` via `--raw-segment=data`).
Differential Revision: https://reviews.llvm.org/D131890
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 4 | ||||
-rw-r--r-- | llvm/docs/CommandGuide/llvm-otool.rst | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index a06e8ae..19b3339 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -312,6 +312,10 @@ MACH-O ONLY OPTIONS AND COMMANDS Disassemble just the specified symbol's instructions. +.. option:: --chained-fixups + + Print chained fixup information. + .. option:: --dyld_info Print bind and rebase information used by dyld to resolve external diff --git a/llvm/docs/CommandGuide/llvm-otool.rst b/llvm/docs/CommandGuide/llvm-otool.rst index c467350..f2ed563 100644 --- a/llvm/docs/CommandGuide/llvm-otool.rst +++ b/llvm/docs/CommandGuide/llvm-otool.rst @@ -23,6 +23,10 @@ OPTIONS Select slice of universal Mach-O file. +.. option:: -chained_fixups + + Print chained fixup information. + .. option:: -C Print linker optimization hints. |