[PATCH] Do not allow .global on section symbols

Ian Lance Taylor ian@zembu.com
Tue Jun 5 11:29:00 GMT 2001


Nick Clifton <nickc@cambridge.redhat.com> writes:

>   I was not sure however, how to add this code as a test case.  I did
>   not want to add it to the assembler's testsuite, since it needs the
>   linker in order to demonstrate the fault, and I did not want to add
>   it to the linker's testsuite since it contains ELF and x86 specific
>   code.  Any suggestions for how to incorporate it as a test as most
>   welcome.

Now that you've added the warning, you can just test for the warning.
It seems to me that using the linker won't help anyhow, since you can
presumably no longer recreate the bug.  However, another option would
be to use objdump; presumably the difference in the symbol would be
displayed by objdump -t.

Ian



More information about the Binutils mailing list