llvm-project/llvm/test/MC/MachO
Francis Visoiu Mistrih 5b5ee61b5f [MachO][TLOF] Use hasLocalLinkage to determine if indirect symbol is local
Local symbols in the indirect symbol table contain the value
`INDIRECT_SYMBOL_LOCAL` and the corresponding __pointers entry must
contain the address of the target.

In r349060, I added support for local symbols in the indirect symbol
table, which was checking if the symbol `isDefined` && `!isExternal` to
determine if the symbol is local or not.

It turns out that `isDefined` will return false if the user of the
symbol comes before its definition, and we'll again generate .long 0
which will be the symbol at the adress 0x0.

Instead of doing that, use GlobalValue::hasLocalLinkage() to check if
the symbol is local.

Differential Revision: https://reviews.llvm.org/D66563

llvm-svn: 369671
2019-08-22 16:59:00 +00:00
..
AArch64 [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
ARM [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
PowerPC [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
absolute.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
absolutize.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
alias.s
altentry.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
bad-darwin-x86_64-32-bit-abs-addr.s
bad-darwin-x86_64-diff-relocs.s
bad-darwin-x86_64-reloc-expr.s
bad-dollar.s
bad-indirect-symbols.s
bad-macro.s
bad-reloc.s
bss.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
build-version-maccatalyst.s [macCatalyst] Use macCatalyst pretty name in .build_version darwin 2019-07-12 22:06:08 +00:00
build-version-with-sdk-version.s
coal-sections-x86_64.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
comm-1.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
cstexpr-gotpcrel-32.ll [MachO][TLOF] Use hasLocalLinkage to determine if indirect symbol is local 2019-08-22 16:59:00 +00:00
cstexpr-gotpcrel-64.ll
darwin-complex-difference.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
darwin-sdk-version.ll
darwin-version-min-load-command.s [macCatalyst] Print out macCatalyst in llvm-objdump for the platform 2019-07-03 17:46:30 +00:00
darwin-x86_64-diff-reloc-assign-2.s
darwin-x86_64-diff-reloc-assign.s
darwin-x86_64-diff-relocs.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
darwin-x86_64-nobase-relocs.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
darwin-x86_64-reloc-offsets.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
darwin-x86_64-reloc.s
data.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
debug_frame.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
diff-with-two-sections.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
direction_labels.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
eh-frame-reloc.s
eh_symbol.s
empty-twice.ll
file.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
gen-dwarf-cpp.s Fix typo in r361251. 2019-05-21 13:23:32 +00:00
gen-dwarf-macro-cpp.s [DebugInfo] Fix tests missed by r362148 2019-05-21 12:48:46 +00:00
gen-dwarf-producer.s
gen-dwarf.s
i386-large-relocations.s
indirect-symbols.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
jcc.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
lcomm-attributes.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
linker-option-1.s
linker-option-2.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
linker-options.ll [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
lit.local.cfg [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
loc.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
osx-version-min-load-command-with-sdk-errors.s
osx-version-min-load-command-with-sdk.s
osx-version-min-load-command.s
pcrel-to-other-section.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
pr19185.s
previous.s
pushsection.s
relax-jumps.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
relax-recompute-align.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
reloc-diff.s
reloc-pcrel-offset.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
reloc-pcrel.s
reloc.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
section-align-1.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
section-align-2.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
section-attributes.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
section-flags.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
string-table.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
symbol-diff.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
symbol-flags.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
symbol-indirect.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
symbols-1.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
tbss.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
tdata.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
temp-labels.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
thread_init_func.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
tls.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
tlv-bss.ll [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
tlv-reloc.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
tlv.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
undefined-directional.s
values.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
variable-errors.s
variable-exprs.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
weakdef.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
x86-data-in-code.s
x86_32-optimal_nop.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
x86_32-scattered-reloc-fallback.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
x86_32-sections.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
x86_32-symbols.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
x86_64-mergeable.s
x86_64-reloc-arithmetic.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
x86_64-sections.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
x86_64-symbols.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
zero-space.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
zerofill-1.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
zerofill-2.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
zerofill-3.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
zerofill-4.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
zerofill-5.s [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
zerofill-sect-align.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
zerofill-text.s