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: TI COFFv2 relocations-- seen anything similar?


"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


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