llvm-6502/lib/Object
Rafael Espindola 159946938f Check that COFF .obj files have sections with zero virtual address spaces.
When talking about the virtual address of sections the coff spec says:
  ... for simplicity, compilers should set this to zero. Otherwise, it is an
  arbitrary value that is subtracted from offsets during relocation.

We don't currently subtract it, so check that it is zero.

If some producer does create such files, we can change getRelocationOffset
instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241447 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-06 14:26:07 +00:00
..
Archive.cpp
ArchiveWriter.cpp
Binary.cpp
CMakeLists.txt
COFFObjectFile.cpp Check that COFF .obj files have sections with zero virtual address spaces. 2015-07-06 14:26:07 +00:00
COFFYAML.cpp
ELF.cpp
ELFObjectFile.cpp
ELFYAML.cpp [ELFYAML] Fix handling SHT_NOBITS sections by obj2yaml/yaml2obj tools 2015-07-03 23:00:54 +00:00
Error.cpp Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
IRObjectFile.cpp
LLVMBuild.txt
MachOObjectFile.cpp Return ErrorOr from getSymbolAddress. 2015-07-03 18:19:00 +00:00
MachOUniversal.cpp
Makefile
Object.cpp Return ErrorOr from getSymbolAddress. 2015-07-03 18:19:00 +00:00
ObjectFile.cpp Return ErrorOr from SymbolRef::getName. 2015-07-02 20:55:21 +00:00
RecordStreamer.cpp
RecordStreamer.h
SymbolicFile.cpp
SymbolSize.cpp