diff options
author | alx32 <103613512+alx32@users.noreply.github.com> | 2024-03-27 14:34:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 14:34:27 -0700 |
commit | 742a82a729925dc79641beb649f492003be40725 (patch) | |
tree | 4f168f6115291002d661de567081e50c70083835 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 552c8eb731a1fabef4d81e2a69911506adf39e22 (diff) | |
download | llvm-742a82a729925dc79641beb649f492003be40725.zip llvm-742a82a729925dc79641beb649f492003be40725.tar.gz llvm-742a82a729925dc79641beb649f492003be40725.tar.bz2 |
[lld-macho] Implement support for ObjC relative method lists (#86231)
The MachO format supports relative offsets for ObjC method lists. This
support is present already in ld64. With this change we implement this
support in lld also.
Relative method lists can be identified by a specific flag (0x80000000)
in the method list header. When this flag is present, the method list
will contain 32-bit relative offsets to the current Program Counter
(PC), instead of absolute pointers.
Additionally, when relative method lists are used, the offset to the
selector name will now be relative and point to the selector reference
(selref) instead of the name itself.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions