https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118844
Bug ID: 118844 Summary: Link failure caused by crtbeginS.o Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: chenglulu at loongson dot cn Target Milestone: --- #include <stdio.h> int main() { asm volatile (".space 0x10000000"); return 0; } luweining@Debian-Sid ~ $ gcc-14 -fuse-ld=lld 1.c ld.lld: error: /usr/lib/gcc/loongarch64-linux-gnu/14/crtbeginS.o:(.text+0xe8): relocation R_LARCH_B26 out of range: 268435624 is not in [-134217728, 134217727]; references '__cxa_finalize' >>> referenced by crtstuff.c >>> defined in /lib/loongarch64-linux-gnu/libc.so.6 collect2: error: ld returned 1 exit status