This is the mail archive of the binutils@sourceware.org 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: what's the intention of "bfd_elf32_bfd_get_relocated_section_contents" in bfd sources


"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


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