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

2007-03-26 Thread sbell at dataplay dot com
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


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

2007-04-19 Thread sbell at dataplay dot com

--- Additional Comments From sbell at dataplay dot com  2007-04-19 22:09 
---
This seems to be some interaction between FreeRTOS (currently version 4.2.1) and
the relax function of the linker, perhaps because the linker replaces CALL with
RCALL (or vice versa).  At any rate, it's very difficult to come up with a
simple test case that shows this.

I will be working on a simpler program using FreeRTOS at some point and perhaps
will be able to come up with a small demonstration of the problem.  In the
meantime, 1200 bytes out of 256K bytes is a small enough price to pay.

-- 
   What|Removed |Added

 Status|NEW |SUSPENDED


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


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

2007-10-09 Thread sbell at dataplay dot com

--- Additional Comments From sbell at dataplay dot com  2007-10-09 21:28 
---
The only reason I was interested in this was as a way to save a few bytes when
my bootloader was misbehaving.  I have fixed my bootloader so I have no interest
in trying to chase this any further.

Since I seem to be the only one that can reproduce this and I can't spend any
more time isolating it, I recommend we close this bug.

I'm setting the status to Resolved, WONTFIX.  Stu Bell

-- 
   What|Removed |Added

 Status|SUSPENDED   |RESOLVED
 Resolution||WONTFIX


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