[PATCH] elf: Clear entsize when clearing SEC_MERGE|SEC_STRINGS

Jan Beulich jbeulich@suse.com
Thu Aug 21 06:44:26 GMT 2025


On 20.08.2025 21:27, H.J. Lu wrote:
> When generating an output from input SEC_MERGE|SEC_STRINGS sections with
> different entsize, we clear the SEC_MERGE|SEC_STRINGS bits.  We also need
> to clear entsize.
> 
> 	PR ld/33291
> 	* ldlang.c (lang_add_section): Clearing entsize when clearing
> 	SEC_MERGE|SEC_STRINGS.
> 	* testsuite/ld-elf/pr33291.d: New file.
> 	* testsuite/ld-elf/pr33291a.s: Likewise.
> 	* testsuite/ld-elf/pr33291b.s: Likewise.

This is doing far less than my patch does, except for adding a testcase. I
don't see why it was approved and committed in favor of mine. (There is also
a wrong claim on the bug itself, which I'll comment on there.)

Jan


More information about the Binutils mailing list