another ill test?
Jan Beulich
jbeulich@novell.com
Tue Nov 21 09:04:00 GMT 2006
More information about the Binutils mailing list
Tue Nov 21 09:04:00 GMT 2006
- Previous message (by thread): another ill test?
- Next message (by thread): another ill test?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>> Alan Modra <amodra@bigpond.net.au> 21.11.06 00:03 >>> >On Mon, Nov 20, 2006 at 10:38:01AM +0100, Jan Beulich wrote: >> ld-elf/warn2 uses symbol2w.s, which contains >> >> .section .gnu.warning,"a",%progbits >> .global Foo >> .type Foo, %object >> .size Foo, 20 >> Foo: >> .string "function 'Foo' used" >> >> As a result, warn2.d expects Foo to end up in .text, but to me placement >> of a symbol in a to be discarded section seems ill in the first place. > >Well, yes, no one would write real code like this. Typically, you'd >put a .gnu.warning section (with no symbols) in an object file >containing code/data for one function. > >> I'd >> therefore like to move Foo into .data, and additionally relax warn2.d to >> not expect a specific section number. > >No, leaving Foo there helps us test that symbols defined in discarded >sections are handled properly. So - just relax the expectation to no longer be a hard 1? Jan
- Previous message (by thread): another ill test?
- Next message (by thread): another ill test?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list