PATCH: Add bfd_get_section_ident

H. J. Lu hjl@lucon.org
Fri Jun 25 17:16:00 GMT 2004


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/x-gzip
Size: 503 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040625/ff205742/attachment.bin>


More information about the Binutils mailing list