[PATCH] D100082: [lld-macho][nfc] Extend abs-symbol.s to test for local absolute symbols
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 7 19:33:42 PDT 2021
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Addresses an old TODO.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100082
Files:
lld/test/MachO/abs-symbols.s
Index: lld/test/MachO/abs-symbols.s
===================================================================
--- lld/test/MachO/abs-symbols.s
+++ lld/test/MachO/abs-symbols.s
@@ -6,6 +6,7 @@
# CHECK-LABEL: SYMBOL TABLE:
# CHECK-DAG: 000000000000dead g *ABS* _foo
# CHECK-DAG: 000000000000beef g *ABS* _weakfoo
+# CHECK-DAG: 000000000000cafe l *ABS* _localfoo
# CHECK-LABEL: Exports trie:
# CHECK-DAG: 0x0000DEAD _foo [absolute]
@@ -15,10 +16,8 @@
.weak_definition _weakfoo
_foo = 0xdead
_weakfoo = 0xbeef
+_localfoo = 0xcafe
.text
_main:
ret
-
-## TODO: once we support emitting local symbols in the symtab, test local
-## absolute symbols too
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100082.335976.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/28126a93/attachment.bin>
More information about the llvm-commits
mailing list