[lld] 3f6753e - [lld-macho][nfc] Extend abs-symbol.s to test for local absolute symbols
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 09:21:14 PDT 2021
Author: Jez Ng
Date: 2021-04-08T12:21:01-04:00
New Revision: 3f6753efe1990a928ed120bd907940a9fb3e2fc3
URL: https://github.com/llvm/llvm-project/commit/3f6753efe1990a928ed120bd907940a9fb3e2fc3
DIFF: https://github.com/llvm/llvm-project/commit/3f6753efe1990a928ed120bd907940a9fb3e2fc3.diff
LOG: [lld-macho][nfc] Extend abs-symbol.s to test for local absolute symbols
Addresses an old TODO.
Reviewed By: #lld-macho, oontvoo
Differential Revision: https://reviews.llvm.org/D100082
Added:
Modified:
lld/test/MachO/abs-symbols.s
Removed:
################################################################################
diff --git a/lld/test/MachO/abs-symbols.s b/lld/test/MachO/abs-symbols.s
index 9c0ecb22ca69..5c106e5b9450 100644
--- a/lld/test/MachO/abs-symbols.s
+++ b/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
More information about the llvm-commits
mailing list