This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Final symbol value adjustment


Oleg Volf <ykvolf@yahoo.com> writes:

>> > I couldn't find in the code place where symbol values adjusted after merging 
>> input sections into output section and where these adjusted values are written 
>> in the final symbol table. Could you please point me these places in the code?
>> 
>> For ELF global syms, elflink.c:elf_link_output_extsym.  ELF local syms
>> are output starting in elflink.c:bfd_elf_final_link and then in
>> elf_link_input_bfd.  Look for elf_link_output_sym.
>> 
> In the linker I built _bfd_generic functions are called from linker.c file
> (correct ELF file is generated, though). 
> Did I miss something in configuration?

Make sure you have defined elf_backend_relocate_section in your
bfd/elfXX-CPU.c file, and set TEMPLATE_NAME=elf32 in your
ld/emulparams/TARGET.sh file.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]