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]

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


Hi all:
    I am studying mips elf relocation. In BFD(binutils), there is a
macro called "bfd_elf32_bfd_get_relocated_section_contents" which
defined as "_bfd_elf_mips_get_relocated_section_contents". Eventually
get function "bfd_perform_relocation" called.
    Also there is another macro named "elf_backend_relocate_section"
defined as "_bfd_mips_elf_relocate_section". Both macros seems doing
kind of similar work.

    And I found no codes in binutils uses the
macro("bfd_elf32_bfd_get_relocated_section_contents"), so I deduced
that other programs such as linker did not use this macro to relocate
input object files at all.

    So here is the question, what is the intention of this
macro("bfd_elf32_bfd_get_relocated_section_contents")? Or it is just a
interface provided by BFD?

Thanks in advance.
Best Regards


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