[PATCH][GAS/ARM] Better handling of difference between a symbol and an undefined symbol.
Dave Korn
dave.korn.cygwin@gmail.com
Tue Sep 28 01:12:00 GMT 2010
On 28/09/2010 00:53, Doug Kwan (Ãö®¶¼w) wrote:
> Absolutely, I would like to use something like:
>
> .section .data.i,"a"
> i:
> .long 0
>
> .section .data.j,"a"
> j:
> .long i - (. - .L1)
> .L1:
>
> The problem is that I cannot guarantee that it assembles for all
> targets. Is there a good way to test that?
I think if you just use a .section directive with only a section name and no
flags, that ought to assemble everywhere. Since it's an assembler-only test
that doesn't need a compiler, you can easily run a script that builds and
tests binutils for a whole huge list of cross-targets and see whether it fails
anywhere. (I'll send you a copy off-list if you'd like.)
cheers,
DaveK
More information about the Binutils
mailing list