[PATCH] D18349: [ELF][MIPS] Reduce number of redundant entries in the local part of MIPS GOT

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 12:13:34 PDT 2016


atanasyan added a comment.

In http://reviews.llvm.org/D18349#384685, @rafael wrote:

> > Almost all test cases from LLVM Test suite show similar results. For example (size of .got section):
>
> >  7zip-benchmark: BFD: 0x17a4 LLD: 0x177c
>
> >  tramp3d-v4: BFD: 0x11a4 LLD: 0x11b8
>
> > 
>
> > There are couple exceptions `mafft/pairlocalalign` and `NPB-serial/is/is`. These executables have large .bss section and the patch produces the GOT bigger than necessary. But anyway it is better than current trunk implementation.
>
>
> I guess the question is more: do you know in which cases they produce
>  a better result?


Suppose that you have a large output section. All relocations against this section target only a small range of addresses in this section. In that case bfd and gold generates only a few GOT entries. This patch in contrast generates GOT entry for each 64kb of the output section.


Repository:
  rL LLVM

http://reviews.llvm.org/D18349





More information about the llvm-commits mailing list