This is the mail archive of the binutils@sources.redhat.com 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: Handle SEC_LINK_DUPLICATES_SAME_CONTENTS for arm-linux


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


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