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: create relocation entry from scratch


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


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