llvm-project/lld
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
..
COFF [CMake] Add missing dependency on intrinsics_gen 2016-10-18 00:50:39 +00:00
ELF [ELF] Choose default segment when it is not specified 2016-10-19 15:04:49 +00:00
cmake/modules
docs Remove trailing whitespace. 2016-10-05 20:09:50 +00:00
include/lld ADT: Remove uses of ilist_*sentinel_traits, NFC 2016-08-22 18:59:33 +00:00
lib [MachO] Factor out a fair amount of duplicated code. NFCI. 2016-09-12 21:07:26 +00:00
test [ELF] Choose default segment when it is not specified 2016-10-19 15:04:49 +00:00
tools/lld Use StringSwitch::Cases. NFC. 2016-09-29 22:54:31 +00:00
unittests [Cmake] Use Cmake's default RPATH for unittest. 2016-09-12 20:44:53 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format
.gitignore
CMakeLists.txt Inline a trivial CMakeLists.txt. 2016-03-03 01:56:23 +00:00
CODE_OWNERS.TXT Add initial CODE_OWNERS.TXT file 2015-07-25 00:44:37 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:40:59 +00:00
README.md

README.md

LLVM Linker (lld)

This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.

lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.