This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Elf .file symbols in reverse order
On Tue, Nov 23, 2010 at 02:03:36PM +0000, Paulo J. Matos wrote:
> On Tue, 23 Nov 2010 08:27:39 +1030, Alan Modra wrote:
>
> > Reversing file symbol order may just be an accident, caused by inserting
> > a new file symbol at the head of the symbol list. gas has done this
> > since rev 1.1 of the FSF sources.
>
> Hummm, I see. I guess you're talking about symbol_rootP from symbols.h.
Yes.
> Do you see any immediate problem with doing the reverse... inserting at
> the end, instead of the beginning to maintain the order of the definition?
I have a vague recollection of trying a patch that put file symbols in
order by scanning forward until a non-file symbol was found then
inserting. I can't remember why that failed.
--
Alan Modra
Australia Development Lab, IBM