[PATCH] D14713: [ELF2] - Optimization for R_X86_64_GOTTPOFF relocation.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 09:30:44 PST 2015


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
Herald added subscribers: danalbert, tberghammer.

R_X86_64_GOTTPOFF is not always requires GOT entries. Some relocations can be converted to local ones.
This patch is a port of gold optimizations for this relocation:
https://android.googlesource.com/toolchain/binutils/+/53b6ed3bceea971857c996b6dcb96de96b99335f/binutils-2.19/gold/x86_64.cc#2551

http://reviews.llvm.org/D14713

Files:
  ELF/InputSection.cpp
  ELF/Target.cpp
  ELF/Target.h
  test/elf2/tls-opt.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14713.40303.patch
Type: text/x-patch
Size: 5736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151116/fbf98d6d/attachment.bin>


More information about the llvm-commits mailing list