https://sourceware.org/bugzilla/show_bug.cgi?id=26706
Bug ID: 26706
Summary: pad strings in .dynstr
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: woodard at redhat dot com
Target Milestone: ---
There are times where it is necessary to patch ELF files so that they have
correct paths to things. Most of the things that they want to be able to update
are in the .dynstr section e.g. RPATH and RUNPATH. It would be helpful if the
strings in .dynstr were padded with some additional space so that they could be
lengthened not just shortened or remain the same length.
Evidently Solaris used to do this and it was helpful.
Can we either make ld pad these strings when it makes a binary by default or
have an option to pad out these strings when linking so that we have some more
room in the .dynstr section should we need to update paths.
I do not know the best amount of padding. I bet that an extra 256 or 512 bytes
per entry would be sufficient for all but the most unusual use cases.
--
You are receiving this mail because:
You are on the CC list for the bug.