[all-commits] [llvm/llvm-project] 4d348f: [RISCV] Let -data-sections also work on sbss/sdata...
KaiWeng via All-commits
all-commits at lists.llvm.org
Fri Aug 23 06:06:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d348f72d3ac4289821f944a99cdb4b6af21aa7b
https://github.com/llvm/llvm-project/commit/4d348f72d3ac4289821f944a99cdb4b6af21aa7b
Author: KaiWeng <kaiweng at andestech.com>
Date: 2024-08-23 (Fri, 23 Aug 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetObjectFile.cpp
A llvm/test/CodeGen/RISCV/sdata-sections.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list