History log of /external/llvm/test/MC/ELF/relocation.s
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de2d8694e25a814696358e95141f4b1aa4d8847e 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r275480

Bug: http://b/31320715

This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/test/MC/ELF/relocation.s
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/test/MC/ELF/relocation.s
6948897e478cbd66626159776a8017b3c18579b9 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/test/MC/ELF/relocation.s
4c5e43da7792f75567b693105cc53e3f1992ad98 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master llvm for rebase to r233350

Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
/external/llvm/test/MC/ELF/relocation.s
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/test/MC/ELF/relocation.s
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/test/MC/ELF/relocation.s
4ca9a2a0adf01ae1aaad2c7fa499501b58183991 30-Oct-2013 Tom Roeder <tmroeder@google.com> This commit adds some (but not all) of the x86-64 relocations that are not
currently supported in the ELF object writer, along with a simple test case.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
7d7db75a55319f1d21f0d8336744f90a81b87ac7 22-Sep-2013 David Majnemer <david.majnemer@gmail.com> X86: Use R_X86_64_TPOFF64 for FK_Data_8

Summary:
LLVM would crash when trying to come up with a relocation type for
assembly like:
movabsq $V@TPOFF, %rax

Instead, we say the relocation type is R_X86_64_TPOFF64.

Fixes PR17274.

Reviewers: dblaikie, nrieck, rafael

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1717

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
c084c0945b0530180e8969f5e2017d02d06db130 28-Jun-2013 David Blaikie <dblaikie@gmail.com> Integrate Assembler: Support X86_64_DTPOFF64 relocations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
7486d92a6c949a193bb75c0ffa0170eeb2fabb80 30-May-2013 Rafael Espindola <rafael.espindola@gmail.com> Change how we iterate over relocations on ELF.

For COFF and MachO, sections semantically have relocations that apply to them.
That is not the case on ELF.

In relocatable objects (.o), a section with relocations in ELF has offsets to
another section where the relocations should be applied.

In dynamic objects and executables, relocations don't have an offset, they have
a virtual address. The section sh_info may or may not point to another section,
but that is not actually used for resolving the relocations.

This patch exposes that in the ObjectFile API. It has the following advantages:

* Most (all?) clients can handle this more efficiently. They will normally walk
all relocations, so doing an effort to iterate in a particular order doesn't
save time.

* llvm-readobj now prints relocations in the same way the native readelf does.

* probably most important, relocations that don't point to any section are now
visible. This is the case of relocations in the rela.dyn section. See the
updated relocation-executable.test for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182908 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
f89da7210b09a0a0f7c9ee216cd54dca03c6b64a 12-Apr-2013 Nico Rieck <nico.rieck@gmail.com> Replace coff-/elf-dump with llvm-readobj

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
5c4e52e49648c196f629b8623b4aca7e4c0080e3 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Fix the bitwidth of the remaining fields.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
251a2bbfb00ceb254d7ac1d35ae975ad9e2145cf 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> print st_shndx with the correct number of bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
67ac0c0d630aa823f31632beecef520df1d7c48b 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> print st_other with the correct number of bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
71a8f5ca12e8536e6050cc7a09fa2a87ea629cfa 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> print st_type with the correct number of bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
d7c278326f333f41d8ec8d19f817a117e3f11190 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Print st_bind with the correct number of bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136874 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
65ad8dc807174b53615181a8170befdf60b6771d 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Another counter goes decimal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
f7179de2a5c127d08e6d24e507abec516f2fc597 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Change anther counter to decimal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
014180d387a875f7e04fd3532eab24dd0794db08 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Don't print a counter in hex.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
d7c9b63b583ac05fc03c9a242c1bb8f12d27acf0 04-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Print all the bits in the addend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136867 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
5232cc675c59ac04df616c45158f15c3c166f5d8 15-Jul-2011 Eli Friedman <eli.friedman@gmail.com> PR10370: Make sure we know how to relax push correctly on x86-64.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
d7c7e2ff7d3305e4bc5634902ec4b8406e9cefca 06-Jul-2011 Kevin Enderby <enderby@apple.com> Update MC/ELF/relocation.s with change to X86 PUSH64i8 in r134501.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
a3bff99f0a325092dc1227c036f5def4aa1b9bb5 19-May-2011 Rafael Espindola <rafael.espindola@gmail.com> ADD64ri32 sign extends its argument, so we need to use a R_X86_64_32S.
Fixes PR9934.

We really need to start tblgening the relocation info :-(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
9974b8b3cb49eb937cb148c4199e0d456186c3ca 08-Apr-2011 Rafael Espindola <rafael.espindola@gmail.com> Update tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129116 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
7c18fa87a4d4ed8b0cfe1ec65597c748c6d91ca9 20-Mar-2011 Rafael Espindola <rafael.espindola@gmail.com> Write the section table and the section data in the same order that
gun as does. This makes it a lot easier to compare the output of both
as the addresses are now a lot closer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
54104db434d400e07cc238c9ac47c5e34e01cb20 23-Jan-2011 Rafael Espindola <rafael.espindola@gmail.com> Add support for lowercase variants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
7a54997d670d92f7f0ece87911800aa68fcb8c6d 01-Jan-2011 Rafael Espindola <rafael.espindola@gmail.com> Fix PR8878.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122658 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
c3a561cb8ed6f04e3cf7b1ff38c9f51a695d196d 27-Dec-2010 Rafael Espindola <rafael.espindola@gmail.com> Handle reloc_riprel_4byte_movq_load. Should make the bots happy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
3ee33aa6f9b961e1c7b6dbb57df6fd53b68fbac4 16-Dec-2010 Rafael Espindola <rafael.espindola@gmail.com> Make pushq produce signed relocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
8ad87ab166062d7f1c1b936affd6d842b0f56169 29-Nov-2010 Benjamin Kramer <benny.kra@googlemail.com> Fix some broken CHECK lines.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
aa8f1f01352bdaaabf712369f8a8a615c776b508 28-Oct-2010 Rafael Espindola <rafael.espindola@gmail.com> Implement R_X86_64_DTPOFF32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117548 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
b4d1721eff7b43577e5f2e53f885973fb6c43683 28-Oct-2010 Rafael Espindola <rafael.espindola@gmail.com> Implement TLSLD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
bc82d8b84f6ae15985d1b01e720ed5c37d714012 27-Oct-2010 Rafael Espindola <rafael.espindola@gmail.com> Implement R_X86_64_GOTTPOFF, R_X86_64_TLSGD and R_X86_64_TPOFF32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
f7d5278fb32b84b6218a222346202ab3af17057c 19-Oct-2010 Jason W Kim <jason.w.kim.2009@gmail.com> Fixing r116753 r116756 r116777
The failures in r116753 r116756 were caused by a python issue -
Python likes to append 'L' suffix to stringified numbers if the number
is larger than a machine int. Unfortunately, this causes a divergence of
behavior between 32 and 64 bit python versions.

I re-crafted elf-dump/common_dump to take care of these issues by:

1. always printing 0x (makes for easy sed/regex)
2. always print fixed length (exactly 2 + numBits/4 digits long)
by mod ((2^numBits) - 1)
3. left-padded with '0'

There is a residual common routine that is also used by
macho-dump (dataToHex) , so I left the 'section_data' test values alone.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92 19-Oct-2010 Eric Christopher <echristo@apple.com> Speculatively revert 116753 and 116756 to attempt to fix the bots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
e7d4a4c6c882907da11adcaaacf1a2f464214e87 18-Oct-2010 Jason W Kim <jason.w.kim.2009@gmail.com> Changed elf-dump to output hex format by default.
Also updated tests.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116753 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
7eae36b38b874f417fa191fc1cfec22c100f164d 30-Sep-2010 Rafael Espindola <rafael.espindola@gmail.com> Factor some logic into ShouldRelocOnSymbol. This simplifies the code and
fixes some cases where we were producing relocations with at symbol that
should use a section instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115194 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
a8c02c3bdd68e65d14fb6b0d56989663754059b0 30-Sep-2010 Rafael Espindola <rafael.espindola@gmail.com> Correctly produce R_X86_64_32 or R_X86_64_32S.

With this patch in

movq $foo, foo(%rip)
foo:
.long foo

We produce a R_X86_64_32S for the first relocation and R_X86_64_32 for the
second one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s
43779dcfef7f4e921c6fc12bb5394a1b2efcd81d 20-Sep-2010 Rafael Espindola <rafael.espindola@gmail.com> Produce a R_X86_64_32 when the value is >=0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114339 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/relocation.s