| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
ELF relocations.
Patch by Jack Carter.
llvm-svn: 147118
|
|
|
|
| |
llvm-svn: 147115
|
|
|
|
| |
llvm-svn: 147114
|
|
|
|
|
|
| |
to Target/.
llvm-svn: 147087
|
|
|
|
|
|
| |
Other targets will follow shortly.
llvm-svn: 147060
|
|
|
|
|
|
|
| |
avoid including ADT/Triple.h in many places when the target specific bits are
moved.
llvm-svn: 147059
|
|
|
|
|
|
| |
side when the target specific bits are moved to the Target directory.
llvm-svn: 147053
|
|
|
|
|
|
|
|
|
|
|
| |
test cases where there were a lot of relocations applied relative to a large
rodata section. Gas would create a symbol for each of these whereas we would
be relative to the beginning of the rodata section. This change mimics what
gas does.
Patch by Jack Carter.
llvm-svn: 146468
|
|
|
|
|
|
|
| |
previous commit. It is strange that we see it in 32 bits. We already
have a fixme about it.
llvm-svn: 146273
|
|
|
|
|
|
|
|
| |
symbol difference. This matches gas behavior and fixes PR11513.
We still don't handle _GLOBAL_OFFSET_TABLE_ in data sections.
llvm-svn: 146238
|
|
|
|
|
|
|
|
| |
make the addend fixup code a bit more generic
Patch by Jack Carter.
llvm-svn: 145998
|
|
|
|
| |
llvm-svn: 145911
|
|
|
|
| |
llvm-svn: 145878
|
|
|
|
|
|
| |
per http://llvm.org/docs/CodingStandards.html#ll_naming
llvm-svn: 145873
|
|
|
|
| |
llvm-svn: 145112
|
|
|
|
| |
llvm-svn: 144649
|
|
|
|
| |
llvm-svn: 143738
|
|
|
|
|
|
|
| |
.symtab_shndx reading and writing together, and finally we have a testcase for
r141440.
llvm-svn: 141641
|
|
|
|
| |
llvm-svn: 141440
|
|
|
|
| |
llvm-svn: 141439
|
|
|
|
|
|
| |
patch by Cary Coutant!
llvm-svn: 141413
|
|
|
|
| |
llvm-svn: 141412
|
|
|
|
|
|
| |
Patch by Reed Kotler at Mips Technologies.
llvm-svn: 140891
|
|
|
|
|
|
|
|
| |
This is meant to be overriden by backends. Implement an override on PowerPC
which adjusts the offset by 2 for ha16/lo16 relocation kinds. This removes
a commented out hack and enables hello world to be compiled on PowerPC.
llvm-svn: 136905
|
|
|
|
| |
llvm-svn: 136868
|
|
|
|
|
|
| |
Move the reloc size assert into AsmBackend - where it is more apropos.
llvm-svn: 136855
|
|
|
|
|
|
| |
This unbreaks some tests.
llvm-svn: 136692
|
|
|
|
|
|
| |
to compile a working hello world on FreeBSD/PPC32.
llvm-svn: 136689
|
|
|
|
|
|
| |
createMCAsmBackend.
llvm-svn: 136010
|
|
|
|
| |
llvm-svn: 135930
|
|
|
|
|
|
| |
they belong.
llvm-svn: 135833
|
|
|
|
| |
llvm-svn: 135825
|
|
|
|
|
|
| |
switch. (face+palm)
llvm-svn: 132790
|
|
|
|
|
|
|
|
|
|
| |
VK_GOTOFF reloc. This matches as' behavior, but it is not clear why the linker
might need this, so I added a FIXME.
I could test this by duplicating test/MC/ELF/got.s, but it doesn't look
worthwhile.
llvm-svn: 132655
|
|
|
|
| |
llvm-svn: 132643
|
|
|
|
|
|
|
|
| |
of tBL/tBLX to R_ARM_THM_CALL (ARM ELF 4.7.1.6)
Patch by koan-sin tan.
llvm-svn: 131748
|
|
|
|
| |
llvm-svn: 131411
|
|
|
|
|
|
|
|
|
|
| |
("T is 1 if the target symbol S has type STT_FUNC and the
symbol addresses a Thumb instruction ;it is 0 otherwise."
from "ELF for the ARM Architecture" 4.7.1.2)
Patch by Koan-Sin Tan!
llvm-svn: 131406
|
|
|
|
| |
llvm-svn: 131208
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LLVM and binutils.
With this patch, there are no functional differences between the .o
produced directly from LLVM versus the .s to .o via GNU as, for relocation tags
at least, for both PIC and non-PIC modes.
Because some non-PIC reloc tags are used (legally) on PIC, so IsPCRel flag is
necessary but not sufficient to determine whether the overall codegen mode is
PIC or not. Why is this necessary? There is an incompatibility of how relocs
are emitted in the .rodata section. Binutils PIC likes to emit certain relocs
as section relative offsets. Non-PIC does not do this.
So I added a hidden switch on the ELFObjectwriter "-arm-elf-force-pic" which
forces the objectwriter to pretend that all relocs are for PIC mode.
Todo: Activate ForceARMElfPIC to true if -relocation-model=pic is selected
on llc.
Todo: There are probably more issues for PIC mode on ARM/MC/ELF...
Todo: Existing tests in MC/ARM/elf-reloc*.ll need to be converted over to .s
tests as well as expanded to cover the gamut.
llvm-svn: 131205
|
|
|
|
|
|
|
|
|
|
| |
for all symbol differences and can drop the old EmitPCRelSymbolValue
method.
This also make getExprForFDESymbol on ELF equal to the one on MachO, and it
can be made non-virtual.
llvm-svn: 130634
|
|
|
|
|
|
| |
When two section names share a suffix, reuse the entry in shstrtab.
llvm-svn: 129115
|
|
|
|
|
|
|
| |
gun as does. This makes it a lot easier to compare the output of both
as the addresses are now a lot closer.
llvm-svn: 127972
|
|
|
|
|
|
| |
other components can use them.
llvm-svn: 126942
|
|
|
|
|
|
|
|
| |
for calls to weak symbols with a definition has the appearance of working
with LLVM-generated code because weak symbol definitions are put in their
own sections.
llvm-svn: 126933
|
|
|
|
|
|
| |
(duplicated) functions to new MCELF class.
llvm-svn: 126686
|
|
|
|
|
|
| |
Fixes PR9292.
llvm-svn: 126330
|
|
|
|
| |
llvm-svn: 126157
|
|
|
|
|
|
| |
the right thing and stop trying to copy it. Fixes PR8944.
llvm-svn: 125648
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
failures with relocations.
The code committed is a first cut at compatibility for emitted relocations in
ELF .o.
Why do this? because existing ARM tools like emitting relocs symbols as
explicit relocations, not as section-offset relocs.
Result is that with these changes,
1) relocs are now substantially identical what to gcc outputs.
2) larger apps (including many spec2k tests) compile, cross-link, and pass
Added reminder fixme to tests for future conversion to .s form.
llvm-svn: 124996
|