This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
what's the intention of "bfd_elf32_bfd_get_relocated_section_contents" in bfd sources
- From: Amker.Cheng <amker dot cheng at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 24 Dec 2008 14:30:02 +0800
- Subject: 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