llvm-project/lld/COFF
Martin Storsjo 333e0d180f [COFF] Remove empty sections before calculating the size of section headers
The number of sections is used in assignAddresses (in
finalizeAddresses) and the space for all sections is permanent from
that point on, even if we later decide we won't write some of them.

The VirtualSize field also gets calculated in assignAddresses, so we
need to manually check whether the section is empty here instead.

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

llvm-svn: 347704
2018-11-27 20:48:09 +00:00
..
CMakeLists.txt Merge {COFF,ELF}/Strings.cpp to Common/Strings.cpp. 2018-02-28 17:38:19 +00:00
Chunks.cpp [COFF] Simplify relocation to discarded section diagnostic code, NFC 2018-11-13 18:30:31 +00:00
Chunks.h [COFF] Add and use a Wordsize field in Config. NFCI. 2018-10-11 17:45:58 +00:00
Config.h [COFF] Add and use a Wordsize field in Config. NFCI. 2018-10-11 17:45:58 +00:00
DLL.cpp [COFF] Add and use a Wordsize field in Config. NFCI. 2018-10-11 17:45:58 +00:00
DLL.h [COFF] Support linking to import libraries from GNU binutils 2018-09-21 22:01:06 +00:00
Driver.cpp [COFF] Add and use a Wordsize field in Config. NFCI. 2018-10-11 17:45:58 +00:00
Driver.h [COFF] Look for libfoo.a if foo.lib is specified, for MinGW 2018-10-10 09:00:10 +00:00
DriverUtils.cpp Eliminate dependency to formatv(). NFC. 2018-10-11 00:58:00 +00:00
ICF.cpp [COFF] ICF: use parallelForEach{,N} 2018-11-26 20:07:07 +00:00
ICF.h Consistent use of header file for ICF and MarkLive 2018-02-20 22:09:59 +00:00
InputFiles.cpp [COFF] Fix error handling on duplicates for import library symbols 2018-10-19 06:39:36 +00:00
InputFiles.h [COFF][LLD] Add link support for Microsoft precompiled headers OBJs 2018-11-05 19:20:47 +00:00
LTO.cpp Set MAttrs in LTO mode 2018-11-01 20:02:49 +00:00
LTO.h Code cleanup in preparation for adding LTO for wasm. NFC. 2018-05-22 20:20:25 +00:00
MapFile.cpp [COFF] Add support for creating range extension thunks for ARM 2018-09-25 10:59:29 +00:00
MapFile.h COFF: Change the /lldmap output format to be more like the ELF linker. 2017-01-14 03:14:46 +00:00
MarkLive.cpp [COFF] When doing automatic dll imports, replace whole .refptr.<var> chunks with __imp_<var> 2018-08-31 07:45:20 +00:00
MarkLive.h Consistent use of header file for ICF and MarkLive 2018-02-20 22:09:59 +00:00
MinGW.cpp [MinGW] Support for multiarch runtimes layout 2018-10-24 07:42:10 +00:00
MinGW.h [COFF] Don't do autoexport of symbols from GNU import libraries 2018-09-26 06:13:47 +00:00
Options.td [lld-link] Generalize handling of /debug and /debug:{none,full,fastlink,ghash,symtab} 2018-09-24 15:28:03 +00:00
PDB.cpp [PDB] Add symbol records in bulk 2018-11-27 19:00:23 +00:00
PDB.h lld-link: Set PDB GUID to hash of PDB contents instead of to a random byte sequence. 2018-09-15 18:37:22 +00:00
README.md Update the documents of the new LLD. 2016-03-12 06:06:40 +00:00
SymbolTable.cpp Fix -Wextra-qualification warning 2018-11-08 18:53:56 +00:00
SymbolTable.h [COFF] Improve relocation against discarded section error 2018-11-08 18:38:17 +00:00
Symbols.cpp [COFF] When doing automatic dll imports, replace whole .refptr.<var> chunks with __imp_<var> 2018-08-31 07:45:20 +00:00
Symbols.h [COFF] Allow automatic dllimport from gnu import libraries 2018-09-26 06:13:39 +00:00
Writer.cpp [COFF] Remove empty sections before calculating the size of section headers 2018-11-27 20:48:09 +00:00
Writer.h [COFF] Add support for creating range extension thunks for ARM 2018-09-25 10:59:29 +00:00

README.md

See docs/NewLLD.rst