llvm-project
2119e359 - [lld][ELF] Concatenate .gnu.build.attributes.* sections (#208737)

Commit
14 hours ago
[lld][ELF] Concatenate .gnu.build.attributes.* sections (#208737) ld.bfd/ld.gold have been concatenating the GNU build attribute sections since 2018: https://gitlab.com/gnutools/binutils-gdb/-/commit/7d8a31665739412395f6dd370d2279acd322e78e Do the same in LLD. These do not have a dedicated section type or flags, so this is handled by the name-based logic. (Peculiarly, there used to be SHF_GNU_BUILD_NOTE, but it was removed again.) Not concatenating these results in a huge number of sections, which breaks tools like `file`.
Author
Parents
Loading