[PATCH 0/1] gas: add new command line option --no-group-check
Xi Ruoyao
xry111@xry111.site
Sat Jul 22 03:56:45 GMT 2023
On Sat, 2023-07-22 at 11:47 +0800, Tan Yuan wrote:
>
> We hope to modify code like this in the kernel:
> + #define ___PASTE(a,b) a##b
> + #define __PASTE(a,b) ___PASTE(a,b)
> + #define __UNIQUE_ID_GROUP __PASTE(__PASTE(__COUNTER__, _),
> __LINE__)
>
> #define __ASM_EXTABLE_RAW(insn, fixup, type, data) \
> - ".pushsection __ex_table, \"a\"\n" \
> + ".attach_to_group " __stringify(__UNIQUE_ID_GROUP) "\n" \
> + ".pushsection __ex_table, \"a?\"\n" \
> "…" \
> ".popsection\n"
Note that even if this Binutils patch is accepted, it will only show up
in Binutils-2.42 and later. So the kernel maintainers will reject this
change, as you cannot tell everyone "use Binutils >= 2.42 to build the
kernel".
I'd suggest to try figuring out a better solution.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Binutils
mailing list