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: [PATCH][gold] Mips: Add support for resolving multiple consecutive relocations


> Rather than make all these changes to add a parameter to
> Relocate::relocate, the reloc_count can be recomputed from what's in
> relinfo:
>
>       size_t reloc_count = (relinfo->shdr.get_sh_size()
>                             / relinfo->shdr.get_sh_entsize());
>

Sorry, that should be:

  elfcpp::Shdr<size, big_endian> shdr(relinfo->reloc_shdr);
  size_t reloc_count = shdr.get_sh_size() / shdr.get_sh_entsize();

-cary


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