https://sourceware.org/bugzilla/show_bug.cgi?id=29226
--- Comment #5 from Jason Vas Dias <jason.vas.dias at gmail dot com> --- OK, with binutils 's gold/ld-new and libbfd recompiled with the above error statement in gold/x86_64.cc, we get: /usr/local/bin/ld: Unlocking file "/home/jvd/rpmbuild/BUILD/gcc-12.1.1-20220507/obj-x86_64-redhat-linux/./gcc/libgcc.a" /usr/local/bin/ld: Closed descriptor 5 for "/home/jvd/rpmbuild/BUILD/gcc-12.1.1-20220507/obj-x86_64-redhat-linux/./gcc/libgcc_eh.a" /usr/local/bin/ld: Opened new descriptor 4 for "cgo" /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 540 r10:0 r11:0 115 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 660 r10:0 r11:0 93 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 7e0 r10:0 r11:0 204 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8b0 r10:0 r11:0 191 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 970 r10:0 r11:0 177 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset a30 r10:0 r11:0 369 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset bb0 r10:0 r11:0 161 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset c60 r10:0 r11:0 118 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset ce0 r10:0 r11:0 132 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset d70 r10:0 r11:0 135 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset ec0 r10:0 r11:0 2625 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1910 r10:0 r11:0 240 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1a00 r10:0 r11:0 240 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1af0 r10:0 r11:0 102 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1c70 r10:0 r11:0 218 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1d50 r10:0 r11:0 395 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 1ee0 r10:0 r11:0 277 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 2390 r10:0 r11:0 3519 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3150 r10:0 r11:0 263 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3260 r10:0 r11:0 204 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3330 r10:0 r11:0 282 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3450 r10:0 r11:0 296 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3580 r10:0 r11:0 68 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 35d0 r10:0 r11:0 428 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 39f0 r10:0 r11:0 228 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 3b70 r10:0 r11:0 1496 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 4150 r10:0 r11:0 1421 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 4780 r10:0 r11:0 4649 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 59b0 r10:0 r11:0 304 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 5b90 r10:0 r11:0 1194 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6040 r10:0 r11:0 469 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6220 r10:0 r11:0 401 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6480 r10:0 r11:0 1505 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6a70 r10:0 r11:0 175 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6b20 r10:0 r11:0 205 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 6bf0 r10:0 r11:0 4529 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 7db0 r10:0 r11:0 542 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 7fd0 r10:0 r11:0 344 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8130 r10:0 r11:0 179 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 81f0 r10:0 r11:0 360 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8360 r10:0 r11:0 1810 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8a80 r10:0 r11:0 411 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8c20 r10:0 r11:0 56 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 8c60 r10:0 r11:0 1838 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 938e r10:0 r11:0 68 /usr/local/bin/ld: error: /tmp/ccAgu0zM.o: failed to match split-stack sequence at section 265 offset 93d2 r10:0 r11:0 68 So yes, it is neither an lea_r10_insn nor an lea_r10_insn, and fnsize appears always to be > 8, so the logic there definitely needs improvement - lack masking out the register number in the instruction, so that ANY 'lea' instruction would trigger insertion of correct code ? I will try to get it to break there now and see if I can get it to print what the instruction actually is, in /home/jvd/rpmbuild/BUILD/gcc-12.1.1-20220507/obj-x86_64-redhat-linux/./gcc/libgcc_eh.a, that is causing this issue. -- You are receiving this mail because: You are on the CC list for the bug.