Skip to content

Commit 3f6753e

Browse files
committed
[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
1 parent 050a7a2 commit 3f6753e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/test/MachO/abs-symbols.s

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# CHECK-LABEL: SYMBOL TABLE:
77
# CHECK-DAG: 000000000000dead g *ABS* _foo
88
# CHECK-DAG: 000000000000beef g *ABS* _weakfoo
9+
# CHECK-DAG: 000000000000cafe l *ABS* _localfoo
910

1011
# CHECK-LABEL: Exports trie:
1112
# CHECK-DAG: 0x0000DEAD _foo [absolute]
@@ -15,10 +16,8 @@
1516
.weak_definition _weakfoo
1617
_foo = 0xdead
1718
_weakfoo = 0xbeef
19+
_localfoo = 0xcafe
1820

1921
.text
2022
_main:
2123
ret
22-
23-
## TODO: once we support emitting local symbols in the symtab, test local
24-
## absolute symbols too

0 commit comments

Comments
 (0)