Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upreadelf complains that .note.rustc is malformed #27372
Comments
This comment has been minimized.
This comment has been minimized.
|
That section contains the metadata for the library, there does appear to be some sort of defined structure for the section, so maybe we could try and fit into that a bit better? We'd need to figure out how to prevent tools like |
This comment has been minimized.
This comment has been minimized.
|
This looks related to #26764 -- readelf doesn't complain about the libraries generated after applying the referenced patch (tylerwhall/rust@fc91059). |
steveklabnik
added
O-linux
and removed
O-linux
labels
Jul 29, 2015
This comment has been minimized.
This comment has been minimized.
|
Turns out that this can actually crash the GNU dynamic linker - me and @solson both observed this with a patch that increases the size of metadata (by serializing MIR for everything). Changing the section name to |
This comment has been minimized.
This comment has been minimized.
|
Oh, turns out that's #26764. |
saschmit commentedJul 29, 2015
After building rustc 1.1.0, if I run
readelf --section-headers --noteover the shared libraries produced, I see output like the following:Based on the section list, it appears that the malformed section is .note.rustc
Built using the x86_64 bootstrap rustc: