https://sourceware.org/bugzilla/show_bug.cgi?id=23244
Bug ID: 23244 Summary: RISC-V 64 relocation truncated to fit in case of undefined weak references Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: sebastian.hu...@embedded-brains.de Target Milestone: --- The following test program void f(void) __attribute__((__weak__)); void _start(void) { if (f != 0) { f(); f(); } } leads to riscv64-elf-gcc weakref.c -T weakref.ld -mcmodel=medany ld: weakref.o: in function `.L0 ': weakref.c:(.text+0x12): relocation truncated to fit: R_RISCV_CALL against undefined symbol `f' collect2: error: ld returned 1 exit status using this linker script ENTRY(_start) SECTIONS { .text 0x90000000 : { *(.text*) } } -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils