aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-01-27 22:19:48 -0800
committerFangrui Song <i@maskray.me>2025-01-27 22:19:48 -0800
commit952685a43d0436577df95ea318b2460438f67982 (patch)
treebc6415dd33c08c667be4d76bfd9de8876cba8bf7 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentd4af658323c6e2492ca1224930488c390a08c720 (diff)
downloadllvm-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