llvm-6502/test/MC/ELF
Rafael Espindola d179886f05 Be more strict on when we produce an undefined reference. In gas a file with
just

.type   foo,@object

will produce an undefined reference to foo. On the other hand, a file with
just

.weakref bar, foo

will not. It is somewhat hard to support both in MC since both statements
should create the symbols. It should be possible if we really need to by
adding to the flags, but hopefully that is not necessary.

With this patch we do not produce a undefined reference in any of those cases.
The assembly file needs an actual use for the undefined reference to be
present.

This is in preparation for a patch implementing .weakref.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117735 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-29 23:09:31 +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 Do not recurse into symbol refs that have a variant kind. This prevents us 2010-10-21 18:00:20 +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
common2.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00
common.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +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
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.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 Improvements to .section parsing: 2010-10-28 21:33:33 +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
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
zero.s Fixing r116753 r116756 r116777 2010-10-19 17:39:10 +00:00