This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposal to change tc_fix_adjustable API


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]