LLD already parses ALIGN expression to specify alignment for output sections in linker scripts but it never applied the alignment to the output section.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/LinkerScript.cpp | ||
---|---|---|
372 | I don't know if this is the right place to add this code. Have all output sections been created when the control reaches here? I think LinkerScript<ELFT>::assignOffsets is a better place to do this. |
ELF/LinkerScript.cpp | ||
---|---|---|
372 | I think they should, but assignOffsets would definitely work. |
I don't know if this is the right place to add this code. Have all output sections been created when the control reaches here? I think LinkerScript<ELFT>::assignOffsets is a better place to do this.