Turns out this case is actually really common -- it happens whenever there's
a reference to an extern variable that ends up statically linked.
Depends on D80856.
Paths
| Differential D80857
[lld-macho] Handle GOT relocations of non-dylib symbols ClosedPublic Authored by int3 on May 29 2020, 9:22 PM.
Details Summary Turns out this case is actually really common -- it happens whenever there's Depends on D80856.
Diff Detail
Event Timelineint3 added a child revision: D80859: [lld-macho] Ensure __bss sections we output have file offset of zero.May 29 2020, 9:47 PM This revision is now accepted and ready to land.Jun 9 2020, 7:21 PM Closed by commit rGa12e7d406de2: [lld-macho] Handle GOT relocations of non-dylib symbols (authored by int3). · Explain WhyJun 17 2020, 9:03 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 271569 lld/MachO/Arch/X86_64.cpp
lld/MachO/InputSection.cpp
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.h
lld/MachO/SyntheticSections.cpp
lld/MachO/Target.h
lld/MachO/Writer.cpp
lld/test/MachO/local-got.s
|
You can drop braces.