Skip to content

Commit

Permalink
[lld-macho][nfc] Extend abs-symbol.s to test for local absolute symbols
Browse files Browse the repository at this point in the history
Addresses an old TODO.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D100082
  • Loading branch information
int3 committed Apr 8, 2021
1 parent 050a7a2 commit 3f6753e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lld/test/MachO/abs-symbols.s
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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

0 comments on commit 3f6753e

Please sign in to comment.