Patch renames BssRelSection to BssSection and reuses
already implemented logic, that allows simplify creation of
"COMMON" section.
Details
Details
- Reviewers
ruiu • rafael - Commits
- rG176d6060208e: [ELF] - Recommit r298078 "[ELF] - Simplify logic of creating "COMMON" section."
rGf6c300e86d34: [ELF] - Simplify logic of creating "COMMON" section.
rLLD298086: [ELF] - Recommit r298078 "[ELF] - Simplify logic of creating "COMMON" section."
rLLD298078: [ELF] - Simplify logic of creating "COMMON" section.
rL298086: [ELF] - Recommit r298078 "[ELF] - Simplify logic of creating "COMMON" section."
rL298078: [ELF] - Simplify logic of creating "COMMON" section.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Overall looking good. Nice improvement. A minor comments.
ELF/Relocations.cpp | ||
---|---|---|
482 ↗ | (On Diff #90830) | RelSec -> Bss, as In<ELFT>::Bss is not a .rel. |
ELF/SyntheticSections.cpp | ||
373–374 | Do this at the beginning of this function because it doesn't depend on this->Size or this->Alignment you already computed. | |
ELF/SyntheticSections.h | ||
156–157 | .bss for read-write copy relocations, .bss.rel.ro for read-only copy relocations, and COMMON for common symbols. | |
167–169 | Size = 0 |
.bss for read-write copy relocations, .bss.rel.ro for read-only copy relocations, and COMMON for common symbols.