Re: [PATCH] Handle COMDAT function symbol reference in readonly data section

2024-01-30 Thread H.J. Lu
On Mon, Jan 29, 2024 at 3:08 PM H.J. Lu wrote: > > For a COMDAT function symbol reference in readonly data section, > instead of putting it in .data.rel.ro or .rodata.cst section, call > function_rodata_section to get the read-only or relocated read-only > data section associated with the

[PATCH] Handle COMDAT function symbol reference in readonly data section

2024-01-29 Thread H.J. Lu
For a COMDAT function symbol reference in readonly data section, instead of putting it in .data.rel.ro or .rodata.cst section, call function_rodata_section to get the read-only or relocated read-only data section associated with the function DECL so that the COMDAT section will be used for the