[PATCH] elf: Remove zero-sized relocation section from section group

H.J. Lu hjl.tools@gmail.com
Fri Apr 3 20:48:42 GMT 2020


On Thu, Apr 2, 2020 at 9:45 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Thu, Apr 02, 2020 at 08:41:18PM -0700, H.J. Lu via Binutils wrote:
> > We must keep zero-sized relocation section in a section group.  Otherwise,
> > the relocation section will be missing from the section group.
>
> Wouldn't it be better to get rid of these bogus relocation sections?
> Should be possible with a change to _bfd_elf_fixup_group_sections, I
> think.

Here is the patch which does that.  OK for master?

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Remove-zero-sized-relocation-section-from-sectio.patch
Type: text/x-patch
Size: 2953 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200403/824b8931/attachment.bin>


More information about the Binutils mailing list