This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Handle SEC_LINK_DUPLICATES_SAME_CONTENTS for arm-linux
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 19 Aug 2004 15:00:31 +0930
- Subject: Re: Handle SEC_LINK_DUPLICATES_SAME_CONTENTS for arm-linux
- References: <20040818145518.GA9774@nevyn.them.org>
On Wed, Aug 18, 2004 at 10:55:19AM -0400, Daniel Jacobowitz wrote:
> The ARM linker uses SEC_LINK_DUPLICATES_SAME_CONTENTS for some note sections
> (probably more of them than it really ought to, but...). This isn't handled
> properly by one of HJ's COMDAT support patches, which just aborted in this
> case.
Before HJ moved the code, it looked like:
case SEC_LINK_DUPLICATES_SAME_CONTENTS:
/* FIXME: We should really dig out the contents of both
sections and memcmp them. The COFF/PE spec says that
the Microsoft linker does not implement this
correctly, so I'm not going to bother doing it
either. */
/* Fall through. */
case SEC_LINK_DUPLICATES_SAME_SIZE:
> * elflink.c (_bfd_elf_section_already_linked): Handle
> SEC_LINK_DUPLICATES_SAME_CONTENTS.
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre