This is the mail archive of the
mailing list for the binutils project.
Re: Reuse of reloc_howto_type depending on section
>> However, I am unsure how to determine the
>> section of the symbol in spear32_final_link_relocate().
> Have a look at how it is done for other targets. ?For example in
> bfd/elf-m10300.c:mn10300_elf_relocate_section (which calls
> mn10300_elf_final_link_relocate) there is code to compute the value for a
> variable called 'sec' which is the section containing the symbol that is
> referred to by the reloc. ?You can then test the flags field of this
> structure to determine if the section is a code section.
That finally made it work. Thanks a lot for your great support!