https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118713
Bug ID: 118713 Summary: -mindirect-branch-register isn't handle for -fno-plt Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ubizjak at gmail dot com Target Milestone: --- Target: x86 -fno-plt forces external call to indirect call via GOT. But -mindirect-branch-register -mindirect-branch-register requires indirect call and jump via register. We got [hjl@gnu-tgl-3 pr115673]$ cat x.s .file "x.c" .text .p2align 4 .globl func .type func, @function func: .LFB0: .cfi_startproc jmp *foo@GOTPCREL(%rip) .cfi_endproc .LFE0: .size func, .-func .ident "GCC: (GNU) 14.2.1 20250110 (Red Hat 14.2.1-7)" .section .note.GNU-stack,"",@progbits [hjl@gnu-tgl-3 pr115673]$