Richard Sandiford
78396a723e
[SystemZ] Add ELF relocation support
...
Another step towards reinstating the SystemZ backend. Tests will be
included in the main backend patch.
llvm-svn: 181008
2013-05-03 11:11:15 +00:00
Rafael Espindola
9541db893e
Clarify getRelocationAddress x getRelocationOffset a bit.
...
getRelocationAddress is for dynamic libraries and executables,
getRelocationOffset for relocatable objects.
Mark the getRelocationAddress of COFF and MachO as not implemented yet. Add a
test of ELF's. llvm-readobj -r now prints the same values as readelf -r.
llvm-svn: 180259
2013-04-25 12:28:45 +00:00
Tim Northover
e77be415c6
AArch64: Add basic relocation processing for llvm-dwarfdump.
...
This allows llvm-dwarfdump to handle the relocations needed, at least
for LLVM-produced code.
llvm-svn: 174874
2013-02-11 11:16:02 +00:00
NAKAMURA Takumi
ecc293a43b
Object/RelocVisitor: Add minimal support, R_MIPS_32, for mips.
...
It fixes llvm-dwarfdump for mips and mipsel.
llvm-svn: 173567
2013-01-26 08:27:36 +00:00
NAKAMURA Takumi
3e419cb67d
Object/RelocVisitor: Add minimal support, R_PPC64_ADDR32, for ppc64.
...
It fixes llvm-dwarfdump for ppc64-elf.
llvm-svn: 173566
2013-01-26 08:27:29 +00:00
NAKAMURA Takumi
fad4802abd
RelocVisitor::visit(): Set hasError in the default path.
...
llvm-svn: 173565
2013-01-26 08:27:23 +00:00
Jakub Staszak
69044702f5
Include Support/ELF.h instead of Object/ELF.h. It is much lighter and completely
...
sufficient.
llvm-svn: 172916
2013-01-19 19:56:11 +00:00
Dmitri Gribenko
1584888148
Remove redundant 'llvm::' qualifications
...
llvm-svn: 172358
2013-01-13 16:01:15 +00:00
Jakub Staszak
f1ea1a7f37
Fix include guards so they exactly match file names.
...
llvm-svn: 172025
2013-01-10 00:45:19 +00:00
Eric Christopher
c6fa1e95a2
Right now all of the relocations are 32-bit dwarf, and the relocation
...
information doesn't return an addend for Rel relocations. Go ahead
and use this information to fix relocation handling inside dwarfdump
for 32-bit ELF REL.
llvm-svn: 171126
2012-12-27 01:07:07 +00:00
Chandler Carruth
ca305491f6
Sort the #include lines for the include/... tree with the script.
...
AKA: Recompile *ALL* the source code!
This one went much better. No manual edits here. I spot-checked for
silliness and grep-checked for really broken edits and everything seemed
good. It all still compiles. Yell if you see something that looks goofy.
llvm-svn: 169133
2012-12-03 17:02:12 +00:00
Eric Christopher
760b5f1eb8
Remove some dead code.
...
llvm-svn: 168374
2012-11-20 18:37:40 +00:00
NAKAMURA Takumi
7652190f5b
Promote the constant 1 to long long, 1LL or 1ULL in int64_t-sensitive context.
...
llvm-svn: 168304
2012-11-19 10:03:09 +00:00
Eric Christopher
b34bece6a8
Add a relocation visitor to lib object. This works via caching relocated
...
values in a map that can be passed to consumers. Add a testcase that
ensures this works for llvm-dwarfdump.
llvm-svn: 167558
2012-11-07 23:22:07 +00:00