TI COFFv2 relocations-- seen anything similar?
Ian Lance Taylor
ian@airs.com
Fri Aug 16 06:15:00 GMT 2002
"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
More information about the Binutils
mailing list