[PATCH] Remove the stripped group section from linker output
Alan Modra
amodra@gmail.com
Tue Feb 13 07:42:00 GMT 2018
On Mon, Feb 12, 2018 at 08:06:29PM -0800, H.J. Lu wrote:
> Like this?
Yes, but I'm wondering now if this is really the correct patch. We
have _bfd_elf_fixup_group_sections which is supposed to adjust
SHT_GROUP size when group member sections are discarded. If the size
went down to 4, then you could set SEC_EXCLUDE for the SHT_GROUP
section.
However, it looks like that function doesn't handle group sections
with relocs properly. Fixing that isn't hard, but then I run into
other problems when setting SEC_EXCLUDE. :-(
So I guess you might as well commit your patch, and when/if I sort out
the other problems I'll remove is_discarded_group.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list