[ELF][x86-64] Fix ifunc and add test.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 1 Feb 2013 09:14:21 +0000 (09:14 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 1 Feb 2013 09:14:21 +0000 (09:14 +0000)
commit08b49bf27eeca43fd6a07ff949f96979890494dd
tree5ff2486637931a494745dfa60fa0f73c814f995d
parent9eaab4be04986319ae8c75c933fbe7de9ab48d68
[ELF][x86-64] Fix ifunc and add test.

In an previous commit I managed to completely disable the IRELATIVE relocation
writing code. I also used the wrong addend for the static relocation. Fix both
these issues and add a test. This test is quite brittle because there's no way
to do arithmetic on variables in FileCheck.

llvm-svn: 174161
lld/lib/ReaderWriter/ELF/DefaultLayout.h
lld/lib/ReaderWriter/ELF/X86_64/X86_64TargetInfo.cpp
lld/test/elf/ifunc.test