llvm-6502/test/MC/ELF
Rafael Espindola 94ed5fca3f 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
2010-11-15 16:33:49 +00:00
..
abs.s Symbols defined as the difference of other two end up in the ABS section. 2010-10-27 16:04:30 +00:00
alias-reloc.s Change MCExpr::EvaluateAsRelocatableImpl of variables to return the original 2010-11-15 16:33:49 +00:00
alias.s Be more strict on when we produce an undefined reference. In gas a file with 2010-10-29 23:09:31 +00:00
align-bss.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
align-nops.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
align-size.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
align-text.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
align.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
basic-elf.ll Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
bss.ll
comdat.s Handle a peculiar comdat case: Creating a section with an undefined 2010-11-14 04:17:37 +00:00
common2.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
common.s Fix another case of a .comm directive without a corresponding .type 2010-11-14 21:11:16 +00:00
debug-line.s Fix test. 2010-11-01 17:10:53 +00:00
debug-loc.s Fix the encoding of negative line deltas. 2010-11-13 01:06:27 +00:00
dg.exp Add support for leb128 of absolute expressions. 2010-09-11 16:45:15 +00:00
diff2.s Add a MCObjectFormat class so that code common to all targets that use a 2010-10-16 18:23:53 +00:00
diff.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
elf_directive_previous.s actually, move the elf tests into the existing elf dir. 2010-10-02 18:53:48 +00:00
elf_directive_section.s actually, move the elf tests into the existing elf dir. 2010-10-02 18:53:48 +00:00
empty.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
entsize.ll Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
entsize.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
file.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
global-offset.s Handle _GLOBAL_OFFSET_TABLE_ correctly. 2010-10-20 16:46:08 +00:00
got.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
ident.s Add support for .ident. 2010-10-26 19:35:47 +00:00
invalid-symver.s Produce an error for an invalid use of .symver. 2010-10-27 17:56:18 +00:00
leb128.s Add support for expressions in .sleb/.uleb directives. 2010-11-02 17:22:24 +00:00
local-reloc.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
merge.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
norelocation.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
pic-diff.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
plt.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
relax-arith.s Implement some relaxations for arithmetic instructions. The limitation 2010-10-26 14:09:12 +00:00
relax-crash.s Relax dwarf line fragments. This fixes a crash in the included testcase. 2010-11-07 02:07:12 +00:00
relax.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
relocation-386.s Implement DTPOFF. 2010-10-28 14:48:59 +00:00
relocation.s Implement R_X86_64_DTPOFF32. 2010-10-28 15:11:03 +00:00
rename.s Fix relocations with renamed symbols. 2010-10-28 19:08:03 +00:00
section.s gnu as support both % and @ before types, do the same. 2010-11-12 15:47:08 +00:00
set.s Fix PR8565. 2010-11-15 14:40:36 +00:00
size.s Be more strict on when we produce an undefined reference. In gas a file with 2010-10-29 23:09:31 +00:00
sleb.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
symref.s Aliases defined with .symver should copy the binding of the symbols they alias. 2010-10-28 18:33:03 +00:00
tls.s Mark labels declared in tls sections as STT_TLS. This matches the behavior of 2010-11-11 19:04:55 +00:00
type.s Parse and record the gnu_unique_object type. 2010-11-13 04:51:02 +00:00
uleb.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
undef2.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
undef.s Be more strict on when we produce an undefined reference. In gas a file with 2010-10-29 23:09:31 +00:00
weak.s Defined weak symbols should have non-zero value. 2010-10-28 19:39:57 +00:00
weakref-plt.s Make AliasedSymbol able to handle MCTargetExpr. They can get here if 2010-11-11 17:24:43 +00:00
weakref-reloc.s Fix the symbol index of weak references. Also make RecordRelocation a bit 2010-11-11 16:48:11 +00:00
weakref.s Implement .weakref. 2010-11-01 14:28:48 +00:00
zero.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00