LLD did not use ELF::Chdr::ch_addralign for decompressed sections.
This resulted in a broken output.
Details
- Reviewers
ruiu • espindola - Commits
- rG604a4178228c: Merging r358885:
rL359209: Merging r358885:
rG3275742898af: [LLD][ELF] - Do not forget to use ch_addralign field after decompressing the…
rL358885: [LLD][ELF] - Do not forget to use ch_addralign field after decompressing the…
rLLD358885: [LLD][ELF] - Do not forget to use ch_addralign field after decompressing the…
Diff Detail
Event Timeline
ELF/InputSection.cpp | ||
---|---|---|
256 | What is the definition of ch_addralign if it's 0? I wonder if we have to handle 0 as 1. |
ELF/InputSection.cpp | ||
---|---|---|
256 | ch_addralign description says: And sh_addralign description says So looks in according to the standard we want to handle 0 as 1. |
What is the definition of ch_addralign if it's 0? I wonder if we have to handle 0 as 1.