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.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to