|
From: | address@hidden |
Subject: | [Bug ld/23244] New: RISC-V 64 relocation truncated to fit in case of undefined weak references |
Date: | Tue, 29 May 2018 05:59:52 +0000 |
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: address@hidden 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.
[Prev in Thread] | Current Thread | [Next in Thread] |