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: RFA: Don't canonicalize STT_SECTION syms


On Sat, Dec 11, 2004 at 12:07:29AM -0500, Daniel Jacobowitz wrote:
> drow@nevyn:~/qtmp% ld -r -o foo foo.o bar.o

Mutter.  ld -r.  Mutter.

> 00000000 l    d  foo    00000000 foo
> 00000000         *UND*  00000000 foo
> 
> I'd be really confused!  "Why didn't 'foo' resolve to 'foo'?" the user
> asks me...

Well, I'm not wedded to the trick I used.  In fact, I made provision for
reverting the elfcode.h change without needing to change the testsuite.

Having the name there does have some benefit, for example with these
section syms that some targets emit:

00000000 l    d  *ABS*	00000000 .shstrtab
00000000 l    d  *ABS*	00000000 .symtab
00000000 l    d  *ABS*	00000000 .strtab

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