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

Amker.Cheng amker.cheng@gmail.com
Wed Dec 24 08:10:00 GMT 2008


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



More information about the Binutils mailing list