diff options
author | Fangrui Song <i@maskray.me> | 2025-01-27 22:19:48 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-01-27 22:19:48 -0800 |
commit | 952685a43d0436577df95ea318b2460438f67982 (patch) | |
tree | bc6415dd33c08c667be4d76bfd9de8876cba8bf7 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | d4af658323c6e2492ca1224930488c390a08c720 (diff) | |
download | llvm-952685a43d0436577df95ea318b2460438f67982.zip llvm-952685a43d0436577df95ea318b2460438f67982.tar.gz llvm-952685a43d0436577df95ea318b2460438f67982.tar.bz2 |
[ELF,test] Add static-pie test related to demoted lazy symbol
The reverted
1a4d6de1b532149b10522eae5dabce39e5f7c687
("[ELF] Remove redundant isExported computation")
had incorrect
```
+ if (sym->includeInDynsym(ctx))
+ sym->isExported = true;
```
causing undefined weak symbols (defined in archives, demoted; e.g.
__cxa_finalize) to be exported for static-pie.
Add a regression test for this corner case. The issue actually exposed
another issue related to includeInDynsym, which has been fixed by
f10441ad003236ef3b9e5415a571d2be0c0ce5ce.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions