1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib/Object
Rafael Espindola 5d5702b4dd Pre-compute the tail of the archive
An archive looks like

<header>
<symbol table>
<tail>

The symbol table refers to offsets in the tail. A complication is that
we would like to support symbol tables that use 64 bit offsets if it
turns out that any of the offsets is too big.

This patch changes the archive writer to first compute the tail. We
cannot just compute one big StringRef since that would require reading
every member upfront, but we can represent it as a series of
StringRefs.

Having done that it is much easier to compute the symbol table and all
offsets are computed before it is written. With this if there is an
accounting problem it will show up with a regular symbol table, not
just when a 64 bit one is needed.

llvm-svn: 314844
2017-10-03 20:59:43 +00:00
..
Archive.cpp Rename K_MIPS64 to K_GNU64 2017-09-20 18:23:01 +00:00
ArchiveWriter.cpp Pre-compute the tail of the archive 2017-10-03 20:59:43 +00:00
Binary.cpp
CMakeLists.txt
COFFImportFile.cpp Convert the archive writer to use Error. 2017-09-21 23:13:36 +00:00
COFFModuleDefinition.cpp
COFFObjectFile.cpp [Object] Verify object sizes before handing out StringRefs pointing out 2017-08-31 12:27:10 +00:00
Decompressor.cpp Revert "[Decompression] Fail gracefully when out of memory" 2017-09-05 22:04:00 +00:00
ELF.cpp [ARC] Prepare the implementation of relocation for LLD 2017-09-13 01:49:49 +00:00
ELFObjectFile.cpp
Error.cpp
IRObjectFile.cpp
IRSymtab.cpp Object: Downgrade invalid weak externals from an assert fail to an llvm::Error when creating an irsymtab. 2017-09-07 01:33:52 +00:00
LLVMBuild.txt
MachOObjectFile.cpp [dwarfdump] Skip 'stripped' sections 2017-09-26 14:22:35 +00:00
MachOUniversal.cpp
ModuleSymbolTable.cpp
Object.cpp
ObjectFile.cpp [dwarfdump] Skip 'stripped' sections 2017-09-26 14:22:35 +00:00
RecordStreamer.cpp
RecordStreamer.h
SymbolicFile.cpp
SymbolSize.cpp
WasmObjectFile.cpp [WebAssembly] Allow each data segment to specify its own alignment 2017-09-29 16:50:08 +00:00
WindowsResource.cpp