what's the intention of "bfd_elf32_bfd_get_relocated_section_contents" in bfd sources

Ian Lance Taylor iant@google.com
Fri Dec 26 06:13:00 GMT 2008


"Amker.Cheng" <amker.cheng@gmail.com> writes:

> Since "bfd_get_relocated_section_contents" will eventually calls to
> bfd_perform_relocation, I have to modify "bfd_perform_relocation" If I
> want to add new relocation types into instruction set.

No, you just set the howto appropriately.  If necessary, use
howto->special_function.  You should never need to change
bfd_perform_relocation itself.

Ian



More information about the Binutils mailing list