[PATCH] D19528: [ELF] - Implemented -z combrelocs/nocombreloc.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 05:33:52 PDT 2016


> "If the load offset is non-zero, the dynamic linker can still make use of this dynamic tag, as relative relocation handling is typically way simpler than handling other relocations (since symbol lookup is not necessary) and thus it can handle all relative relocations in a tight loop in one
> place and then handle the remaining relocations with the fully featured relocation handling routine."

I failed to notice glibc or musl doing that. Lets start simple. Don't
set the tags. Sort by offset only and benchmark it.

We can then benchmark if some other sorting gives additional benefits.

Cheers,
Rafael


More information about the llvm-commits mailing list