This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Proposal to change tc_fix_adjustable API
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nick Kelsey <nickk at ubicom dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 20 Dec 2002 12:51:22 +1030
- Subject: Re: Proposal to change tc_fix_adjustable API
- References: <11c201c2a7bd$00054c80$f601a8c0@nkelseyxp>
On Thu, Dec 19, 2002 at 04:16:10PM -0800, Nick Kelsey wrote:
> I would like to add a new paramter to the tc_fix_adjustable API:
That could be done easily enough since tc_fix_adjustable is a macro.
In fact, we may as well pass the symbol section as well, so in your
case
#define tc_fix_adjustable(FIX, SEC, SYMSEC) \
ip2k_fix_adjustable (FIX, SEC, SYMSEC)
and on other targets
#define tc_fix_adjustable(FIX, SEC, SYMSEC) \
xxx_fix_adjustable (FIX)
However, I suspect that you really need to fix bugs in the ip2k linker
relaxation code, rather than just try to avoid them. You seem to have
found that symbols in a relaxed code section lead to gdb problems, yet
I see code in elf32-ip2k.c that is attempting to adjust symbols. Why
isn't this working?
--
Alan Modra
IBM OzLabs - Linux Technology Centre