create relocation entry from scratch

peter matula xmatul01@stud.fit.vutbr.cz
Thu Jul 15 14:16:00 GMT 2010


On 15.07.2010 15:28, Ian Lance Taylor wrote:
>> relpp = (arelent **) xmalloc(get_reloc_upper_bound(ibfd, isec));
>> relcount = bfd_canonicalize_reloc(ibfd, isec, relpp, sympp);
>> bfd_set_reloc(obfd, osec, relpp, relcount);
>>
>> But I can not use bfd_canonicalize_reloc() to get info from out format
>> and I have to fill each reloc entry manually.
>
> This is the right way.  Yes, you have to fill in each entry manually.
>
> Ian

Alright, thanks. But when should I create relocations ? During section 
creating or later when there will be symbol table ?

Peter Matula



More information about the Binutils mailing list