[PATCH] x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ))

H.J. Lu hjl.tools@gmail.com
Sun Feb 6 14:49:46 GMT 2022


On Sat, Feb 5, 2022 at 4:29 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> ---
>  sysdeps/x86/sysdep.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h
> index b92a0db5dd..60b366258f 100644
> --- a/sysdeps/x86/sysdep.h
> +++ b/sysdeps/x86/sysdep.h
> @@ -114,7 +114,8 @@ enum cf_protection_level
>  /* Local label name for asm code. */
>  #ifndef L
>  /* ELF-like local names start with `.L'.  */
> -# define L(name)       .L##name
> +# define LOCAL_LABEL(name) .L##name
> +# define L(name)       LOCAL_LABEL(name)
>  #endif
>
>  #define atom_text_section .section ".text.atom", "ax"
> --
> 2.34.1
>

I am checking this in.

-- 
H.J.


More information about the Libc-alpha mailing list