PATCH: Add bfd_get_section_ident
Thu Jul 1 15:39:00 GMT 2004
Hi H. J.
>>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
Thanks - that makes your patch clearer. Please consider the patch approved.
More information about the Binutils