This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove the stripped group section from linker output


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]