https://sourceware.org/bugzilla/show_bug.cgi?id=25617
Bug ID: 25617 Summary: Gold looks up shared object information in section headers instead of the dynamic array Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: klkblake at gmail dot com CC: ian at airs dot com Target Milestone: --- For shared objects, all information needed for linking is in the dynamic array, and section headers are optional. However, gold looks up the information it needs in the (optional) section headers instead of the (mandatory) dynamic array, and fails if the section headers are not present. As a result, gold is unable to link to shared objects with no section headers, even though such shared objects are spec-compliant and the dynamic linker can load them without issue. This is unfortunate, as working around it requires redundantly respecifying most of the dynamic array in section headers. This seems like it should not be too hard to fix, from what I've seen of gold's shared object handling, but I'm not particularly familiar with the codebase so I don't know if there are things I'm missing. The BFD-based linker also exhibits this issue. -- You are receiving this mail because: You are on the CC list for the bug.