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
- Repository
 - rL LLVM
 
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 | ||
| 375–376 ↗ | (On Diff #90830) | 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 | ||
| 151–152 ↗ | (On Diff #90830) | .bss for read-write copy relocations, .bss.rel.ro for read-only copy relocations, and COMMON for common symbols.  | 
| 162 ↗ | (On Diff #90830) | Size = 0  |