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
abs.s
alias-reloc.s
alias.s
align-bss.s
align-nops.s
align-size.s
align-text.s
align.s
bad-expr2.s
bad-expr3.s
bad-expr.s
bad-relocation.s
bad-section.s
basic-elf-32.s
basic-elf-64.s
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s
cfi-adjust-cfa-offset.s
cfi-advance-loc2.s
cfi-def-cfa-offset.s
cfi-def-cfa-register.s
cfi-def-cfa.s
cfi-escape.s
cfi-offset.s
cfi-reg.s
cfi-register.s
cfi-rel-offset2.s
cfi-rel-offset.s
cfi-remember.s
cfi-restore.s
cfi-same-value.s
cfi-sections.s
cfi-signal-frame.s
cfi-undefined.s
cfi-version.ll
cfi-window-save.s
cfi-zero-addr-delta.s
cfi.s
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
comp-dir.s
compression.s
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
file.s
gen-dwarf.s
global-offset.s
gnu-type-diagnostics.s
gnu-type.s
got.s
ident.s
ifunc-reloc.s
invalid-symver.s
lcomm.s
leb128.s
lit.local.cfg
local-reloc.s
many-sections-2.s
many-sections.s
merge.s
n_bytes.s
no-fixup.s
no-reloc.s
nocompression.s
noexec.s
norelocation.s
offset.s
org.s
pic-diff.s
plt.s
pr9292.s
pr19430.s
relax-all-flag.s
relax-arith.s
relax-crash.s
relax.s
reloc-same-name-section.s
relocation-386.s
relocation-pc.s
relocation.s
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
sleb.s
strtab-suffix-opt.s
subsection.s
subtraction-error.s
symbol-names.s
symver.s
tls-i386.s
tls.s
type-propagate.s
type.s
uleb.s
undef2.s
undef.s
version.s
weak-relocation.s
weak.s
weakref-plt.s
weakref-reloc.s
weakref.s
x86_64-reloc-sizetest.s
zero.s