bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/24564] New: [avr] Link fails for rjmp/rcall to symbols at range


From: saaadhu at gcc dot gnu.org
Subject: [Bug ld/24564] New: [avr] Link fails for rjmp/rcall to symbols at range boundary with pmem-wrap-around
Date: Thu, 16 May 2019 11:22:32 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]