[PATCH v3] ARM: module.lds: fix unwind metadata for merged .text sections

Xie Yuanbin xieyuanbin1 at huawei.com
Thu Aug 6 06:02:12 PDT 2026


On Sat, 30 May 2026 23:46:01 +0800, Xiao Junzhe wrote:
> +	.ARM.extab		0 : {
> +		*(.ARM.extab .ARM.extab.text .ARM.extab.text.[0-9a-zA-Z_]*)
> +	}
> +	.ARM.exidx		0 : {
> +		*(.ARM.exidx .ARM.exidx.text .ARM.exidx.text.[0-9a-zA-Z_]*)
> +	}
> +}

I think ".ARM.extab.text" and ".ARM.exidx.text" is redundant, and I
suggest that
"*(.ARM.extab .ARM.extab.text.[0-9a-zA-Z_]*)"
"*(.ARM.exidx .ARM.exidx.text.[0-9a-zA-Z_]*)"
instead.

Mapping between the text sections and exidx sections in .o files
generated by the compilers:
".text" -> ".ARM.exidx"
".text.xx" -> ".ARM.exidx.text.xx"

".ARM.extab.text" and ".ARM.exidx.text" sections will never be
generated by the compilers.

Also Cc to Linus Walleij and UNWIND:
Cc: Linus Walleij <linusw at kernel.org>
Cc: Josh Poimboeuf <jpoimboe at kernel.org>
Cc: Steven Rostedt <rostedt at goodmis.org>



More information about the linux-arm-kernel mailing list