Fix split stab section handling
Nathan Sidwell
nathan@codesourcery.com
Thu Sep 18 09:35:00 GMT 2003
Hi,
this patch fixes a number of issues that pop up when --split-by-file
or --split-by-reloc is used.
1) The .stabstr section is split, causing all but the first
.stab section to be unable to locate their strings. Fixed by not allowing
the linker to split any stab string sections
2) The generated name of a split section uses the first 5 characters
of the original name (why?). Thus causing a split .stab.excl etc not to
be able to find their associated .stab.exclstr string section. Fixed by
not truncating stab section names this way
3) Neither the bfd library, nor objdump correctly propagate the string
offset within the string table from one split stab section to the next.
Thus resulting in garbled string information.
4) BFD and objdump presume split stab sections have a numeric suffix,
rather than a dotted numeric suffix, thus not locating the remaining
stab sections.
tested with i386-pc-linux-gnu (for elf) and i386-wrs-coff (for coff)
ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 90277.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20030918/efdb6084/attachment.ksh>
More information about the Binutils
mailing list