The primary use of build-id is in debugging, hence omitting debug sections when computing it significantly reduces its usability as changes in debug section content wouldn't alter the build-id.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This was pointed out by Roland McGrath who proposed the build-id feature and did the original implementation in BFD ld. The original feature proposal can be found here.
ELF/Writer.cpp | ||
---|---|---|
1325–1326 | I've changed it to use ArrayRef<uint8_t>, do you prefer to use pointer and size instead? |
... of the output file.