https://sourceware.org/bugzilla/show_bug.cgi?id=13278
--- Comment #10 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Maciej W. Rozycki <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=95d96d49d039a31e8062f032bc24585aeaf85657 commit 95d96d49d039a31e8062f032bc24585aeaf85657 Author: Alan Modra <[email protected]> Date: Fri Feb 20 17:29:50 2026 +0000 BFD: Correct archive format determination for non-default link emulations Fix an issue with archive format determination coming from commit b228303dd14e ("PR binutils/13278: --plugin doesn't work on archive"), <https://inbox.sourceware.org/binutils/[email protected]/>, causing the default link emulation to be used despite archive members being in another object format and consequently triggering segmentation faults in `cris-aout' LD with the default (`crisaout') emulation where archive members are in the ELF format. Address the issue by always checking the format of the first member of an archive even if no default target has been specified, except when the target being checked against is be the plugin target. Verified by hand and the `powerpc64le-linux-gnu' target to cause no issue with the recipe in PR binutils/13278 and removing failures from segmentation faults with the new tests: cris-aout -FAIL: CRIS regular archive link (implicit emulation) cris-aout -FAIL: CRIS thin archive link (implicit emulation) Co-Authored-By: Maciej W. Rozycki <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
