[PATCH] D14991: [ELF/AArch64] Print a diagnostic message if nonzero addend is used in a GOT relocation.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 09:41:31 PST 2015


ikudrin created this revision.
ikudrin added reviewers: ruiu, rafael, davide.
ikudrin added a subscriber: llvm-commits.
ikudrin added a project: lld.
Herald added subscribers: rengolin, aemerson.

The addend in the GOT relocations for AArch64 has a special meaning,
it requires a separate GOT entry to be created for each S + A case.

It is not clear, if nonzero addends for GOT relocations are used in the wild,
so let's just print a diagnostic message for now.

http://reviews.llvm.org/D14991

Files:
  ELF/InputSection.cpp
  ELF/Target.cpp
  ELF/Target.h
  test/ELF/aarch64-got-nonzero-addend-error.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14991.41154.patch
Type: text/x-patch
Size: 4174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151125/b057e6c9/attachment.bin>


More information about the llvm-commits mailing list