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: PATCH: Add bfd_get_section_ident


On Fri, Jun 25, 2004 at 05:22:31PM +0100, Nick Clifton wrote:
> 
> Also, would it be possible to include a test somewhere that checks the 
> behaviour of this patch ?
> 

Here is a testcase:

[hjl@gnu 1]$ make
gcc -c foo.s
gcc -c bar.s
ld -r -o new.o foo.o bar.o
bar: discarded in section `.text[.foo]' from bar.o
make: [new.o] Error 1 (ignored)
/usr/bin/ld -r -o old.o foo.o bar.o
bar: discarded in section `.text' from bar.o
make: [old.o] Error 1 (ignored)

There may be many `.text' sections in bar.o. `.text[.foo]' is more
useful.


H.J.

Attachment: bug.tar.gz
Description: GNU Zip compressed data


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