This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: TI COFFv2 relocations-- seen anything similar?
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Charles Lepple" <clepple at ghz dot cc>
- Cc: <binutils at sources dot redhat dot com>
- Date: 16 Aug 2002 06:14:49 -0700
- Subject: Re: TI COFFv2 relocations-- seen anything similar?
- References: <10427.216.12.38.216.1029462048.squirrel@www.ghz.cc>
"Charles Lepple" <clepple@ghz.cc> writes:
> The real problem is that all of the code in bfd/reloc.c is meant for
> relocation entries that are applied without any saved state information.
> These types of relocations essentially need a stack to processes the
> arithmetic operations.
Don't worry too much about the howto functions; they are used by the
assembler and when linking to a different object file format. You
really want to write a relocate_section function, and those take a
whole set of relocations. See alpha_relocate_section() in
coff-alpha.c for an example of such a function in which relocations
build upon each other.
Ian