Files
clang-p2996/llvm/test/CodeGen/RISCV/sdata-sections.ll
KaiWeng 4d348f72d3 [RISCV] Let -data-sections also work on sbss/sdata sections (#87040)
Add an unique suffix to .sbss/.sdata if -fdata-sections.
Without assigning an unique .sbss/.sdata section to each symbols, a
linker may not be able to remove unused part when gc-section since all
used and unused symbols are all mixed in the same .sbss/.sdata section.
I believe this also matches the behavior of gcc.
2024-08-23 14:06:12 +01:00

1.5 KiB