| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 253312
|
|
|
|
|
|
| |
This is the first step in making ELF2 the default.
llvm-svn: 253188
|
|
|
|
|
|
|
| |
... in order to avoid conflicts when tests are run in parallel.
This is an attempt to fix PR24591.
llvm-svn: 246153
|
|
|
|
|
|
| |
Submitted by: zan jyu via llvm-dev
llvm-svn: 245792
|
|
|
|
|
|
|
|
|
|
| |
Add PT_PHDR segment depending on its availability in linker script's
PHDRS command, fallback if no linker script is given.
Handle FILEHDR, PHDRS and FLAGS attributes of program header.
Differential Revision: http://reviews.llvm.org/D11589
llvm-svn: 244743
|
|
|
|
| |
llvm-svn: 243006
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Put sections to segments according to linker scripts if available.
Rework the code of TargetLayout::assignSectionsToSegments so it operates
on the given list of segments, which can be either read from linker scripts
or constructed as before.
Handle NONE segments defined in linker scripts by putting corresponding sections
to PT_NULL segment.
Consider flags set for segments through linker scripts.
Differential Revision: http://reviews.llvm.org/D10918
llvm-svn: 243002
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using a linker script expression to change the address of a section, even
if the new address is more than a page of distance from the old address, lld
may put everything in the same segment, forcing it to be unnecessarily large.
This patch changes the logic in Segment::assignVirtualAddress() and
Segment::assignFileOffsets() to allow the segment to be sliced into two or more
if it detects a linker script expression that changes a section address.
Differential Revision: http://reviews.llvm.org/D10952
llvm-svn: 242096
|
|
|
|
| |
llvm-svn: 241378
|
|
|
|
|
|
|
|
|
|
|
| |
Add method to query segments for specified output section name.
Return error if the section is assigned to unknown segment.
Check matching of sections to segments during layout on the subject of correctness.
NOTE: no actual functionality of using custom segments is implemented.
Differential Revision: http://reviews.llvm.org/D10359
llvm-svn: 239719
|
|
|
|
| |
llvm-svn: 235897
|
|
|
|
|
|
|
| |
This patch is a follow-up to the rL232409 and allows define symbols
in a linker script in case of linking shared library.
llvm-svn: 234163
|
|
|
|
| |
llvm-svn: 233222
|
|
|
|
|
|
|
|
|
|
| |
Puts symbols defined in linker script expressions in a runtime file that is
added as input to the resolver, making the input object files see symbols
defined in linker scripts.
http://reviews.llvm.org/D8263
llvm-svn: 232409
|
|
|
|
| |
llvm-svn: 232404
|
|
|
|
|
|
|
|
|
|
|
| |
GNU LD has an option named -T/--script which allows a user to specify
a linker script to be used [1]. LLD already accepts linker scripts
without this option, but the option is widely used. Therefore it is
best to support it in LLD as well.
[1] https://sourceware.org/binutils/docs/ld/Options.html#Options
llvm-svn: 232183
|
|
|
|
|
|
| |
This patch implements evaluation of the GNU ld EXTERN command.
llvm-svn: 232111
|
|
llvm-svn: 192360
|