https://sourceware.org/bugzilla/show_bug.cgi?id=26094
Bug ID: 26094 Summary: Corrupt version table generated Product: binutils Version: 2.35 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: l...@jv-coder.de Target Milestone: --- Created attachment 12604 --> https://sourceware.org/bugzilla/attachment.cgi?id=12604&action=edit Repro Hi, I found a bug in the linker, where it generates an corrupt version table. The version index for a symbol is either completely invalid or points to a wrong version string. Older versions of the dynamic linker can crash, if the encounter such a binary. This bug was found, when trying to run systemd tests build in yocto on an arm system. Yocto configures systemd in an unusual way, that enabled the bug in the first place: It produces a binary, that links an object, that uses __start_<SECTION> and __stop_<SECTION> symbols, in an object, that is linked twice, once using a static library and then again using a dynamic library. The dynamic library also uses a version script, that adds a version name to all global symbols. I guess this is very uncommon and probably a bug in systemd, but still the linker shouldn't generate a corrupted version table. A minimal repro is append to this ticket and it can also be found here: https://github.com/MofX/ld_version_bug Greets, Joerg -- You are receiving this mail because: You are on the CC list for the bug.