bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/4284] New: Linker "relax" option results in bad subroutine calls


From: sbell at dataplay dot com
Subject: [Bug ld/4284] New: Linker "relax" option results in bad subroutine calls
Date: 26 Mar 2007 21:34:13 -0000

I am compiling and linking C for an ATmega2560. When I use the default options,
the resulting code works fine.  When I try to remove unused trampoline entries
by placing -W,--relax in the ld options, the resulting code seems to have bad
subroutine calls.

Not all subroutine calls are bad, nor are all "bad" call targets always called
with a bad address.

Since the code image is around 120KBytes, this is a complex problem and my code
would not serve as a reasonable debugging case.  I will try to come up with a
simple example that shows the problem.

I will attach more information as I get it.

-- 
           Summary: Linker "relax" option results in bad subroutine calls
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: sbell at dataplay dot com
                CC: bug-binutils at gnu dot org
GCC target triplet: avr


http://sourceware.org/bugzilla/show_bug.cgi?id=4284

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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