[PATCH][gold] Mips: Add support for resolving multiple consecutive relocations

Cary Coutant ccoutant@gmail.com
Wed Mar 15 23:41:00 GMT 2017


> 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



More information about the Binutils mailing list