[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
This commit is contained in:
Jez Ng 2021-04-08 12:14:48 -04:00
parent 050a7a27ca
commit 3f6753efe1
1 changed files with 2 additions and 3 deletions

View File

@ -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