objcopy - redefine dynamic symbols
Nick Clifton
nickc@redhat.com
Tue Mar 7 08:16:00 GMT 2006
Hi Thomas,
> I added some printf to the filter_symbols function and I can see that my
> symbol(s) are successfully renamed during this process, so I guess that
> I now have what I want, but only in the internal representation of
> objcopy/bfd.
>
> But what now? Nothing of that appears in the output file. So how can I
> achieve this? There seems to be nothing like "bfd_set_dynamic_symtab" as
> the dynamic counterpart of bfd_set_symtab!?
Hmm, maybe you need to call some of the ELF backend functions like
elf_backend_finish_dynamic_symbol or elf_backend_finish_dynamic_section
or elf_backend_adjust_dynamic_symbol or even
elf_backend_size_dynamic_section. These are all defined in
bfd/elf-bfd.h although their implementations may be target specific.
Cheers
Nick
More information about the Binutils
mailing list