llvm-project/llvm/lib/Object
David Major 30ba0a0c95 Don't require a null terminator when loading objects
When a null terminator is required and the file size is a multiple of the system page size, MemoryBuffer will prefer pread() over mmap(), which can result in excessive memory usage.

Patch by Mike Hommey!

Differential Revision: https://reviews.llvm.org/D56475

llvm-svn: 350774
2019-01-09 23:36:32 +00:00
..
Archive.cpp Object: Find terminator correctly when reading long filenames in GNU archives (PR37244) 2018-05-08 08:22:58 +00:00
ArchiveWriter.cpp [llvm-ar] Simplify string table get-or-insert pattern with .insert, NFC 2018-12-19 20:54:06 +00:00
Binary.cpp Don't require a null terminator when loading objects 2019-01-09 23:36:32 +00:00
CMakeLists.txt Bitcode: Write the irsymtab to disk. 2017-06-27 23:50:11 +00:00
COFFImportFile.cpp [COFF] Use symbolic constants instead of hardcoded numbers. NFCI. 2018-07-20 20:48:33 +00:00
COFFModuleDefinition.cpp [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
COFFObjectFile.cpp [llvm-readobj] [COFF] Print the symbol index for relocations 2019-01-03 08:08:23 +00:00
Decompressor.cpp Revert "[Decompression] Fail gracefully when out of memory" 2017-09-05 22:04:00 +00:00
ELF.cpp [Object] Rename getRelrRelocationType to getRelativeRelocationType 2018-12-14 07:46:58 +00:00
ELFObjectFile.cpp Use unique_ptr to hold MCInstrInfo 2018-08-24 21:03:35 +00:00
Error.cpp Add vtable anchor to classes. 2018-12-29 02:02:13 +00:00
IRObjectFile.cpp Remove redundant includes from lib/Object. 2017-12-13 21:30:55 +00:00
IRSymtab.cpp Put "built-in" function definitions in global Used list, for LTO. (fix bug 34169) 2018-07-24 19:34:37 +00:00
LLVMBuild.txt Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
MachOObjectFile.cpp [MachO] Fix inconsistency between error messages when validating LC_DYSYMTAB 2018-09-04 16:31:53 +00:00
MachOUniversal.cpp
ModuleSymbolTable.cpp [macho] save the SDK version stored in module metadata into the version min and 2018-12-14 01:14:10 +00:00
Object.cpp Use llvm::copy. NFC 2018-11-17 01:44:25 +00:00
ObjectFile.cpp [llvm-size][libobject] Add explicit "inTextSegment" methods similar to "isText" section methods to calculate size correctly. 2018-12-13 19:40:12 +00:00
RecordStreamer.cpp [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
RecordStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
SymbolSize.cpp Fix computeSymbolSizes SEGFAULT on invalid file 2018-04-23 16:08:01 +00:00
SymbolicFile.cpp Update a few switch statements to handle file_magic::pdb. 2018-03-07 18:58:33 +00:00
WasmObjectFile.cpp [WebAssembly] Massive instruction renaming 2019-01-08 06:25:55 +00:00
WindowsResource.cpp Use llvm::copy. NFC 2018-11-17 01:44:25 +00:00