This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Do not allow .global on section symbols
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: Re: [PATCH] Do not allow .global on section symbols
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 05 Jun 2001 11:29:30 -0700
- Cc: binutils at sources dot redhat dot com
- References: <m31yozmfzx.fsf@north-pole.nickc.cambridge.redhat.com>
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