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: Bug fix for gldelf_i386_place_orphan in elf32.em [version 2.20.1]


On Thu, Jan 13, 2011 at 12:09:45AM +1030, Alan Modra wrote:
> Thanks.  That nicely illuminates the bug, which is that using
> lookup->prev can result in hold[orphan_nonalloc].os equal to
> hold[orphan_bss].os.  If that happens, then orphan bss sections and
> orphan non-alloc sections might be intermingled.
> 
> I'll test the following patch overnight, to find the inevitable
> testsuite failures this will cause..

Applied with this changelog.  The testsuite doesn't appear to care
about ordering of non-alloc sections.

	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
	attempt to put non-alloc orphans before debug sections, just place
	them after .comment.

-- 
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]