llvm-6502/lib/Object
Rui Ueyama 99995267ae Object/COFF: Support large relocation table.
NumberOfRelocations field in COFF section table is only 16-bit wide. If an
object has more than 65535 relocations, the number of relocations is stored
to VirtualAddress field in the first relocation field, and a special flag
(IMAGE_SCN_LNK_NRELOC_OVFL) is set to Characteristics field.

In test we cheated a bit. I made up a test file so that it has
IMAGE_SCN_LNK_NRELOC_OVFL flag but the number of relocations is much smaller
than 65535. This is to avoid checking in a large test file just to test a
file with many relocations.

Differential Revision: http://llvm-reviews.chandlerc.com/D3139

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204418 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21 00:44:19 +00:00
..
Archive.cpp [C++11] Add overloads for externally used OwningPtr functions. 2014-03-05 10:27:34 +00:00
Binary.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
CMakeLists.txt Add a SymbolicFile interface between Binary and ObjectFile. 2014-02-21 20:10:59 +00:00
COFFObjectFile.cpp Object/COFF: Support large relocation table. 2014-03-21 00:44:19 +00:00
COFFYAML.cpp Object: Provide a richer means of describing auxiliary symbols 2014-03-19 04:47:47 +00:00
ELF.cpp [Sparc] Add support for sparc relocation types in ELF object file. 2014-01-26 03:21:28 +00:00
ELFObjectFile.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
ELFYAML.cpp
Error.cpp Support: Make error_category's constructor public 2014-03-15 04:05:59 +00:00
IRObjectFile.cpp Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
LLVMBuild.txt Add a SymbolicFile interface between Binary and ObjectFile. 2014-02-21 20:10:59 +00:00
MachOObjectFile.cpp Darwin: Add assembler directives to create version-min load commands. 2014-03-18 22:09:05 +00:00
MachOUniversal.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
Makefile
Object.cpp Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
ObjectFile.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
SymbolicFile.cpp Add a SymbolicFile interface between Binary and ObjectFile. 2014-02-21 20:10:59 +00:00
YAML.cpp Object: Don't double-escape empty hexdata 2014-03-20 06:28:52 +00:00