History log of /external/llvm/test/MC/ELF/alias-reloc.s
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/test/MC/ELF/alias-reloc.s
c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3 05-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't hide the first ELF symbol.

The first symbol on ELF is dummy, but it has a defined content and readelf
normally displays it. With this change llvm-readobj also displays it and we
can check that llvm-mc output is correct according to the standard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183337 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.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/alias-reloc.s
1ae3c165f7f6dd265f136d975f255c18de53a960 20-Dec-2010 Roman Divacky <rdivacky@freebsd.org> Print all 64bits for st_value and st_size. Adjust tests accordingly.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/alias-reloc.s
94ed5fca3f5ab5acb74e70b8393b837131e7110c 15-Nov-2010 Rafael Espindola <rafael.espindola@gmail.com> Change MCExpr::EvaluateAsRelocatableImpl of variables to return the original
variable if recursing fails to simplify it.

Factor AliasedSymbol to be a method of MCSymbol.

Update MCAssembler::EvaluateFixup to match the change in
EvaluateAsRelocatableImpl.

Remove the WeakRefExpr hack, as the object writer now sees the weakref with
no extra effort needed.

Nothing else is using MCTargetExpr, but keep it for now.

Now that the ELF writer sees relocations with aliases, handle

.weak foo2
foo2:
.weak bar2
.set bar2,foo2
.quad bar2

the same way gas does and produce a relocation with bar2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/alias-reloc.s
1f52dfe69ee7d0a49a6bfe6dfec6aeb8e416e313 15-Nov-2010 Rafael Espindola <rafael.espindola@gmail.com> Move the logic to decide with which symbol we produce a relocation (if any) to
a central location. This also makes us a bit more compatible with gas.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119094 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/test/MC/ELF/alias-reloc.s
8c8bc05a383890ab29b288625c746bf24240e9a1 21-Oct-2010 Rafael Espindola <rafael.espindola@gmail.com> Do not recurse into symbol refs that have a variant kind. This prevents us
from losing the variant when producing a relocation on an alias.

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