when is ld appending .number to end of section names?

Mike Frysinger vapier@gentoo.org
Tue Jan 22 15:59:00 GMT 2008


On Saturday 19 January 2008, Sam Ravnborg wrote:
> I could read this in info gas:
> ----
>   Note on targets where the `@' character is the start of a comment (eg
> ARM) then another character is used instead.  For example the ARM port
> uses the `%' character.
> ----
>
> From this I cannot read that '%' is documented as a valid replacement for
> '@'. And relying on undocumented behaviour is no good.
>
> A quick test with my i386 toolchain says it works for me.
> ld --ver: 2.15
>
> So I will cook up a patch that uses '%' - but I need to prepare some other
> stuff first.

i dont know if it's documented, but personally ive been using % as a 
replacement for @ in most assembly code (i say most because i dont always 
remember to do it) ... so alpha/x86/x86_64/arm/parisc/ia64/......

perhaps someone else can speak to the validity of this ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20080122/f6781539/attachment.sig>


More information about the Binutils mailing list