<br><br>On Sunday, May 17, 2026, Will Hawkins <<a href="mailto:hawkinsw@obs.cr">hawkinsw@obs.cr</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>On Sunday, May 17, 2026, Jan Beulich <<a href="mailto:jbeulich@suse.com" target="_blank">jbeulich@suse.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16.05.2026 02:38, Will Hawkins wrote:<br>
> In the .section Assembler Directive for the ELF format, both the % and<br>
> the @ can be used when writing the type argument.<br>
<br>
That's not exactly true (the two aren't fully interchangeable), and hence ...</blockquote><div><br></div><div><br></div><div>In obj-elf.c, I saw </div><div><br></div><div>else if (c == '@' || c == '%')<br></div><div><br></div><div>which I must have misinterpreted?</div></blockquote><div><br></div><div><br></div><div>I guess that they are only treated equivalently in code on platforms where the @ and % do not have implications for the code in earlier processing before reaching obj_elf_section. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> Clarify the documentation.<br>
> <br>
> Signed-off-by: Will Hawkins <<a href="mailto:hawkinsw@obs.cr" target="_blank">hawkinsw@obs.cr</a>><br>
> ---<br>
>  gas/doc/as.texi | 7 +++----<br>
>  1 file changed, 3 insertions(+), 4 deletions(-)<br>
> <br>
> diff --git a/gas/doc/as.texi b/gas/doc/as.texi<br>
> index 3e1d2d0e254..201d9c26b7d 100644<br>
> --- a/gas/doc/as.texi<br>
> +++ b/gas/doc/as.texi<br>
> @@ -7118,13 +7118,12 @@ a numeric value to be set as the ELF section header's type field.<br>
>  some targets extend this list with their own types<br>
>  @end table<br>
>  <br>
> +Note - the @code{%} character may be used instead of the @code{@@} character<br>
> +when writing the @var{type} argument constant.<br>
> +<br>
>  Many targets only support the first three section types.  The type may be<br>
>  enclosed in double quotes if necessary.<br>
>  <br>
> -Note on targets where the @code{@@} character is the start of a comment (eg<br>
> -ARM) then another character is used instead.  For example the ARM port uses the<br>
> -@code{%} character.<br>
<br>
... removing this paragraph loses information. I'd suggest adding something like<br>
"For example the Arm port uses @code{@@} as comment character." to the new paragraph<br>
you add. (MMIX is the other way around, using % as comment char.)<br>
<br>
Jan<br>
</blockquote>
</blockquote>