[ELF][test] Test that thunks are processed before finalizeSynthetic(in.symTab)
authorFangrui Song <maskray@google.com>
Sat, 4 Apr 2020 17:24:48 +0000 (10:24 -0700)
committerFangrui Song <maskray@google.com>
Sat, 4 Apr 2020 17:57:37 +0000 (10:57 -0700)
commita13212582a901beb57f9c041df68c7b34eef0524
tree8a518cb09e93a483f54456b2457ef8aa8e4d1545
parent6d3437404353b3fc4bb53b8b110f7802be1b7227
[ELF][test] Test that thunks are processed before finalizeSynthetic(in.symTab)

finalizeSynthetic(in.symTab) calls sortSymTabSymbols() to order local
symbols before non-local symbols.

The newly added tests ensure that thunk symbols are added before
finalizeSynthetic(in.symTab), otherwise .symtab would be out of order.
lld/test/ELF/aarch64-thunk-script.s
lld/test/ELF/ppc32-long-thunk.s
lld/test/ELF/ppc64-long-branch.s