llvm-6502/test
Rafael Espindola 81c66bcc13 Create .symtab_shndxr only when needed.
We need .symtab_shndxr if and only if a symbol references a section with an
index >= 0xff00.

The old code was trying to figure out if the section was needed ahead of time,
making it a fairly dependent on the code actually writing the table. It was
also somewhat conservative and would create the section in cases where it was
not needed.

If I remember correctly, the old structure was there so that the sections were
created in the same order gas creates them. That was valuable when MC's support
for ELF was new and we tested with elf-dump.py.

This patch refactors the symbol table creation to another class and makes it
obvious that .symtab_shndxr is really only created when we are about to output
a reference to a section index >= 0xff00.

While here, also improve the tests to use macros. One file is one section
short of needing .symtab_shndxr, the second one has just the right number.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204769 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-25 23:44:25 +00:00
..
Analysis ScalarEvolution: Compute exit counts for loops with a power-of-2 step. 2014-03-25 16:25:12 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [PowerPC] Select between VSX A-type and M-type FMA instructions just before RA 2014-03-25 23:29:21 +00:00
DebugInfo llvm/test/DebugInfo/empty.ll: Suppress crash for targeting pecoff while investigating. 2014-03-25 23:16:44 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation [msan] Relax the test some more. 2014-03-25 14:32:05 +00:00
Integer
JitListener
Linker
LTO
MC Create .symtab_shndxr only when needed. 2014-03-25 23:44:25 +00:00
Object Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
Other
TableGen
tools Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
Transforms [InstCombine] Don't fold bitcast into store if it would need addrspacecast 2014-03-25 17:21:41 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg Refactor llvm/test/lit.cfg to use lit.util.which. 2014-03-21 17:31:35 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh