llvm-6502/test/MC/ELF
Rafael Espindola d8ee23f34c Add back commits r219835 and a fixed version of r219829.
The only difference from r219829 is using

getOrCreateSectionSymbol(*ELFSec)

instead of

GetOrCreateSymbol(ELFSec->getSectionName())

in ELFObjectWriter which causes us to use the correct section symbol even if
we have multiple sections with the same name.

Original messages:

r219829:
Correctly handle references to section symbols.

When processing assembly like

.long .text

we were creating a new undefined symbol .text. GAS on the other hand would
handle that as a reference to the .text section.

This patch implements that by creating the section symbols earlier so that
they are visible during asm parsing.

The patch also updates llvm-readobj to print the symbol number in the relocation
dump so that the test can differentiate between two sections with the same name.

r219835:
Allow forward references to section symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220021 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-17 01:48:58 +00:00
..
ARM Report error for non-zero data in .bss 2014-06-22 00:33:44 +00:00
abs.s
alias-reloc.s
alias.s
align-bss.s
align-nops.s
align-size.s
align-text.s
align.s
bad-expr2.s Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
bad-expr3.s Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
bad-expr.s
bad-relocation.s
bad-section.s
basic-elf-32.s Work around gold bug http://sourceware.org/PR16794. 2014-04-02 12:15:20 +00:00
basic-elf-64.s
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s
cfi-adjust-cfa-offset.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-advance-loc2.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-def-cfa-offset.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-def-cfa-register.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-def-cfa.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-escape.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-offset.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-reg.s
cfi-register.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-rel-offset2.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-rel-offset.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-remember.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-restore.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-same-value.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-sections.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-signal-frame.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-undefined.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-version.ll Revert "Revert "DI: Fold constant arguments into a single MDString"" 2014-10-03 20:01:09 +00:00
cfi-window-save.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi-zero-addr-delta.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
cfi.s Emit DWARF3 call frame information when DWARF3+ debug info is requested 2014-06-19 15:39:33 +00:00
comdat-dup-group-name.s
comdat-reloc.s
comdat.s Add back commits r219835 and a fixed version of r219829. 2014-10-17 01:48:58 +00:00
common2.s
common.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
comp-dir.s X86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_address was misemitted on x64. 2014-04-08 15:28:50 +00:00
compression.s Compress debug sections only when beneficial. 2014-04-18 21:52:26 +00:00
debug-line2.s
debug-line.s
debug-loc.s
diff2.s
diff.s
discriminator.s
dot-symbol-assignment.s
elf_directive_previous.s
elf_directive_section.s
empty-dwarf-lines.s
empty.s
entsize.ll
entsize.s
fde.s
file-double.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
file.s
gen-dwarf.s Record the DWARF version in MCContext 2014-05-01 08:46:02 +00:00
global-offset.s
gnu-type-diagnostics.s MC: make ELF .type handling more GNU AS compatible 2014-06-08 00:34:34 +00:00
gnu-type.s MC: make ELF .type handling more GNU AS compatible 2014-06-08 00:34:34 +00:00
got.s
ident.s
ifunc-reloc.s
invalid-symver.s
lcomm.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
leb128.s
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
local-reloc.s
many-sections-2.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
many-sections.s
merge.s Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
n_bytes.s
no-fixup.s
no-reloc.s Avoid revocations when possible. 2014-07-01 14:34:30 +00:00
nocompression.s llvm/test/MC/ELF/nocompression.s: Loosen an expression to match "llvm-mc.EXE". 2014-03-30 14:04:00 +00:00
noexec.s Move MCOptions that aren't shared between programs into their specific 2014-05-21 21:05:09 +00:00
norelocation.s
offset.s Add an option for evaluating past symbols. 2014-04-28 20:53:11 +00:00
org.s
pic-diff.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
plt.s
pr9292.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
pr19430.s Allow using .cfi_startproc without a leading symbol. 2014-06-23 15:34:32 +00:00
relax-all-flag.s
relax-arith.s
relax-crash.s
relax.s
reloc-same-name-section.s Add a test that would have found the bug in r219829. 2014-10-17 01:34:23 +00:00
relocation-386.s Fix pr19645. 2014-05-03 19:57:04 +00:00
relocation-pc.s Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
relocation.s Fix pr19645. 2014-05-03 19:57:04 +00:00
rename.s
section-quoting.s
section-sym2.s Add back commits r219835 and a fixed version of r219829. 2014-10-17 01:48:58 +00:00
section-sym-err.s Add back commits r219835 and a fixed version of r219829. 2014-10-17 01:48:58 +00:00
section-sym.s Add back commits r219835 and a fixed version of r219829. 2014-10-17 01:48:58 +00:00
section.s
set.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
sleb.s
strtab-suffix-opt.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
subsection.s
subtraction-error.s Produce an error instead of a crash in an expr we cannot represent. 2014-04-28 12:40:50 +00:00
symbol-names.s
symver.s Relax the test a bit. 2014-04-30 15:32:21 +00:00
tls-i386.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
tls.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
type-propagate.s
type.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
uleb.s
undef2.s
undef.s Don't include an invalid symbol in the symbol table. 2014-04-28 13:39:57 +00:00
version.s
weak-relocation.s
weak.s
weakref-plt.s
weakref-reloc.s
weakref.s ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
x86_64-reloc-sizetest.s
zero.s