https://sourceware.org/bugzilla/show_bug.cgi?id=24564
Bug ID: 24564 Summary: [avr] Link fails for rjmp/rcall to symbols at range boundary with pmem-wrap-around Product: binutils Version: 2.31 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- The following piece of code fails with a 'relocation truncated to fit: R_AVR_13_PCREL' $ cat fail.s .global main main: rjmp target .ds.b 4096 target: nop $ avr-as -m avr51 fail.s -o fail.o $ avr-ld -m avr51 fail.o --pmem-wrap-around=8k .text+0x0): relocation truncated to fit: R_AVR_13_PCREL against `no symbol' With a wraparound of 8k, all flash addresses are reachable through PC-relative calls and jumps, so the link should not fail. -- 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