https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407
Bug ID: 116407 Summary: [avr] error: relocation truncated to fit Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- This error can occur with some text peepholes: void delay_62 (int x) { do __builtin_avr_nops (62); while (--x != -1); } int main (void) { return 0; } $ avr-gcc bug.c -O1 -save-temps -o bug.elf bug.elf-bug.o: in function `.L2': bug.c:(.text+0x84): relocation truncated to fit: R_AVR_7_PCREL against `.L2' collect2: error: ld returned 1 exit status