Benjamin Kramer
|
63d37b9322
|
MCELF: Compensate for the addend on i386. Patch by Roman Divacky, with some cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112197 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-26 17:23:02 +00:00 |
|
Benjamin Kramer
|
7b83c26051
|
MCELF: Use precomputed symbol indices, patch by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112079 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-25 20:09:43 +00:00 |
|
Benjamin Kramer
|
2f6e0e68a4
|
Relocate against parent if the symbol is not in section or it's a common symbol, from Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111925 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-24 17:34:39 +00:00 |
|
Benjamin Kramer
|
c522f6e70b
|
Fix thinko. Having no tests is great ...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111848 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-23 21:32:00 +00:00 |
|
Benjamin Kramer
|
36c6dc22bc
|
Reduce code duplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111846 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-23 21:23:52 +00:00 |
|
Benjamin Kramer
|
0b6cbfe04c
|
ELFObjectWriter: Run ComputeSymbolTable before recording relocations. This way we can use the information it has computed and don't have to recompute the same stuff over and over again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111844 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-23 21:19:37 +00:00 |
|
Benjamin Kramer
|
bcf2db60dd
|
Add the symbol offset to the relocation value when we relocate against section. By Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111824 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-23 19:05:46 +00:00 |
|
Benjamin Kramer
|
30dc1ee78a
|
Use the proper relocation section + cleanup, from Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111819 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-23 18:24:20 +00:00 |
|
Benjamin Kramer
|
44cbde85ba
|
MCELF: Count the section orders properly. Patch by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111517 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-19 13:44:49 +00:00 |
|
Benjamin Kramer
|
81cfb8529b
|
Remove dead code. Fixes a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111271 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 19:45:05 +00:00 |
|
Benjamin Kramer
|
e5b57347e9
|
Sketch i386 relocations handling, from Roman Divacky.
Hello world builds & runs now on i386/ELF with -integrated-as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111264 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 18:20:28 +00:00 |
|
Benjamin Kramer
|
299fbe3a5a
|
Use the correct entry size for relocation entries, from Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111259 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 17:56:13 +00:00 |
|
Benjamin Kramer
|
377a572d9b
|
Differentiate between RELA and REL relocations, from Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111252 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 17:30:07 +00:00 |
|
Benjamin Kramer
|
eb97677764
|
One baby step towards i386 ELF, from Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111247 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 17:02:29 +00:00 |
|
Benjamin Kramer
|
172d7d6a12
|
Try to silence a overeager GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111214 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 00:33:24 +00:00 |
|
Benjamin Kramer
|
368ae7e4ec
|
A round of minor cleanups for ELFObjectWriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111213 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-17 00:00:46 +00:00 |
|
Benjamin Kramer
|
1f8aa7bf08
|
Silence warnings and simplify code. Eliminate a 32/64 bit portability issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111201 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-16 23:00:12 +00:00 |
|
Eli Friedman
|
a44fa2473a
|
Fixes for generation of ELF relocations. Patch by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111183 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-16 21:17:09 +00:00 |
|
Eli Friedman
|
f8020a3978
|
Fix a few warnings in and detabify MCELFStreamer and ELFObjectWriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111175 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-16 19:15:06 +00:00 |
|
Matt Fleming
|
3565a06ebf
|
Add ELF ObjectWriter and Streamer support.
I forgot to add these files in commit 111172.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111174 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-08-16 18:57:57 +00:00 |
|