Reuse of reloc_howto_type depending on section

Martin Walter martin.walter@gmail.com
Fri Jul 31 11:22:00 GMT 2009


>> 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!
Cheers,
Martin



More information about the Binutils mailing list