llvm-project/lld/ELF
Eugene Leviant ce30b1c78e [ELF] Choose default segment when it is not specified
Linker scripts may specify PHDRS, but not specify section to
segment assignments, i.e:

PHDRS { seg PT_LOAD; }
SECTIONS { 
  .sec1 {} : seg
  .sec2 {} 
}

In such case linker should still choose some segment for .sec2 section.
This patch will add .sec2 to previously opened segments (seg) or to the 
very first PT_LOAD segment, if no section-to-segment assignments has been
made

Differential revision: https://reviews.llvm.org/D24795

llvm-svn: 284600
2016-10-19 15:04:49 +00:00
..
CMakeLists.txt [ELF] Add support for -b binary 2016-09-09 22:08:04 +00:00
Config.h [ELF] Support for R_ARM_TARGET2 relocation 2016-10-17 18:12:24 +00:00
Driver.cpp [ELF] Support for R_ARM_TARGET2 relocation 2016-10-17 18:12:24 +00:00
Driver.h Remove unused #includes. 2016-09-29 01:45:22 +00:00
DriverUtils.cpp COFF: Implement /linkrepro flag. 2016-07-26 02:00:42 +00:00
ELFCreator.cpp Update for llvm change. 2016-10-04 22:43:38 +00:00
ELFCreator.h [ELF] Add support for -b binary 2016-09-09 22:08:04 +00:00
EhFrame.cpp [ELF] Allow arbitrary code alignment in .eh_frame 2016-07-29 04:41:38 +00:00
EhFrame.h Create a new file EhFrame.cpp and move code to read .eh_frame there. 2016-05-24 02:55:45 +00:00
Error.cpp [ELF] Add "error" and "warning" prefixes to linker messages 2016-10-19 09:35:19 +00:00
Error.h [ELF] - Do not crash when unable to parse ELF object file. 2016-10-07 08:51:57 +00:00
ICF.cpp Simplify InputFile ownership management. 2016-09-14 00:05:51 +00:00
ICF.h Do not pass Symtab to markLive/doICF since Symtab is globally accessible. 2016-05-02 19:30:42 +00:00
InputFiles.cpp Avoid using getComdatSymbolTable. 2016-10-17 19:25:08 +00:00
InputFiles.h [ThinLTO] Avoid archive member collisions. 2016-10-12 19:35:54 +00:00
InputSection.cpp Don't gc non-alloca non-string pieces. 2016-10-19 14:50:26 +00:00
InputSection.h Support GNU-style ZLIB-compressed input sections. 2016-10-12 22:36:31 +00:00
LTO.cpp [LTO] Split the options for ThinLTO jobs and Regular LTO partitions 2016-10-10 23:12:14 +00:00
LTO.h Keep a private member private. 2016-09-29 22:37:45 +00:00
LinkerScript.cpp [ELF] Choose default segment when it is not specified 2016-10-19 15:04:49 +00:00
LinkerScript.h Improve comments. 2016-10-13 23:08:33 +00:00
MarkLive.cpp [ELF][ARM] Garbage collection support for .ARM.exidx sections 2016-10-10 10:10:27 +00:00
Mips.cpp [ELF] - Do not crash on MIPS if there is no object files in input. 2016-10-04 15:19:20 +00:00
Options.td [ELF] Support for R_ARM_TARGET2 relocation 2016-10-17 18:12:24 +00:00
OutputSections.cpp [ADT] Move CachedHashString to its own header in ADT, and rename to CachedHashStringRef. 2016-10-17 22:24:36 +00:00
OutputSections.h [ADT] Move CachedHashString to its own header in ADT, and rename to CachedHashStringRef. 2016-10-17 22:24:36 +00:00
README.md Update the documents of the new LLD. 2016-03-12 06:06:40 +00:00
Relocations.cpp [ELF] Don't fail if undefined symbol is not used 2016-10-06 09:45:04 +00:00
Relocations.h Delete dead field. NFC. 2016-09-07 20:37:34 +00:00
ScriptParser.cpp ELF: Implement skip() as (void)next() 2016-10-17 18:40:35 +00:00
ScriptParser.h Rename skip(StringRef) -> consume(StringRef). 2016-10-17 16:01:53 +00:00
Strings.cpp [ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY. 2016-09-15 19:15:12 +00:00
Strings.h Move a utility function to Strings.cpp. 2016-10-13 00:13:15 +00:00
SymbolListFile.cpp Rename skip(StringRef) -> consume(StringRef). 2016-10-17 16:01:53 +00:00
SymbolListFile.h [ELF] - Remove VersionScriptParser class and move the members to ScriptParser 2016-08-31 09:08:26 +00:00
SymbolTable.cpp Use CachedHashStringRef instead of CachedHash<StringRef>. 2016-10-18 17:50:36 +00:00
SymbolTable.h Use CachedHashStringRef instead of CachedHash<StringRef>. 2016-10-18 17:50:36 +00:00
Symbols.cpp [ThinLTO] Avoid archive member collisions. 2016-10-12 19:35:54 +00:00
Symbols.h [ELF][MIPS] Setup STO_MIPS_PIC flag for PIC symbols when generate a relocatable object 2016-09-29 12:58:36 +00:00
Target.cpp [ELF] Support for R_ARM_TARGET2 relocation 2016-10-17 18:12:24 +00:00
Target.h [ELF] Set MAXPAGESIZE to 2MiB on x86-64 to match bfd and gold. 2016-08-17 02:10:51 +00:00
Thunks.cpp Sign extend a value before passing it to the Target. 2016-09-01 13:52:52 +00:00
Thunks.h Attempt to fix buildbots. 2016-07-09 23:02:37 +00:00
Writer.cpp [ELF] - Added support of PT_OPENBSD_RANDOMIZE 2016-10-14 13:02:22 +00:00
Writer.h Support GNU-style ZLIB-compressed input sections. 2016-10-12 22:36:31 +00:00

README.md

See docs/NewLLD.rst