[PATCH] D19528: [ELF] - Implemented -z combrelocs/nocombreloc.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 05:49:41 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
One silly question: I need to use LLVM_BUILD_LLVM_DYLIB=true BUILD_SHARED_LIBS=true for that, right ?
(always used static build, never shared)
George.
More information about the llvm-commits
mailing list