Michael J. Spencer
2812aa82d0
[elf2] Pass BSSSec to the relocation handling code differently. Don't store it in the symbol.
...
llvm-svn: 248393
2015-09-23 16:57:31 +00:00
Rafael Espindola
c40108858d
Move relocation processing to Target.
...
I will add a couple of ppc64 relocs in the next patches.
llvm-svn: 248319
2015-09-22 20:54:08 +00:00
Rafael Espindola
01205f79a4
Start adding target abstractions.
...
This is just enough to get PLT working on 32 bit x86.
The idea behind using a virtual interface is that it should be easy to
convert any of the functions to template parameters if any turns out to be
performance critical.
llvm-svn: 248308
2015-09-22 18:19:46 +00:00
Rafael Espindola
a794fd44a1
Add support for R_386_PC32.
...
llvm-svn: 248275
2015-09-22 13:47:45 +00:00
Rafael Espindola
21585757e6
Handle implicit addends in Elf_Rel.
...
llvm-svn: 248272
2015-09-22 13:35:00 +00:00
Rafael Espindola
ec50eebefd
Remove unnecessary parenthesis.
...
llvm-svn: 248270
2015-09-22 13:30:26 +00:00
Rafael Espindola
9d06ab6ded
Rename Chunks.(h|cpp) to InputSection.(h|cpp). NFC.
...
llvm-svn: 248226
2015-09-22 00:01:39 +00:00