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]

Re: [PATCH] Do not allow .global on section symbols


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


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