https://sourceware.org/bugzilla/show_bug.cgi?id=19013
--- Comment #9 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Beulich <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=810b19952d5d89405c80b468ba5182a5319dbb3e commit 810b19952d5d89405c80b468ba5182a5319dbb3e Author: Jan Beulich <[email protected]> Date: Fri Oct 24 15:11:11 2025 +0200 bfd: generalize _bfd_elf_merge_sections() Except for the ELF class check, which isn't needed anymore when the generic linker knows how to deal with SEC_MERGE sections, there isn't anything substantially ELF-specific left in the function. This also eliminates the need for the "remove_hook" callback. As a result, section merging itself now works for mixed-class ELF input objects (issues with dropping of symbols and relocations that were there before for such cases remain present, though), i.e. the PR ld/19013 testcases need adjusting accordingly: Both now expect identical .rodata contents. While making the change, add another line of expected output, to properly match after "#...". Else a mismatch on the important line isn't properly visible in ld.log. In set_symbol_from_hash() additionally set BSF_GLOBAL when dealing with a defined symbol. Without that the if() body ahead of the one being added to default_indirect_link_order() would not be entered once previously undefined symbols become defined (suggesting that there is a pre-existing issue there). -- You are receiving this mail because: You are on the CC list for the bug.
