Rui Ueyama
52a1509ea7
ELF2: LinkerScript: Interpret -l and = file name prefixes.
...
In the linker script, -l and = have the same meaning as in the command line.
In addition to that, if a path is not absolute, the path needs to be searched
from the search paths. This patch implements them.
llvm-svn: 249967
2015-10-11 03:28:42 +00:00
Rui Ueyama
00f972728b
ELF2: LinkerScript: Handle INPUT as a synonym for GROUP.
...
In our name resolution algorithm, --start-group and --end-group have
no special meaning.
llvm-svn: 249961
2015-10-11 01:31:57 +00:00
Rui Ueyama
31aa1f83de
ELF2: LinkerScript: Implement INCLUDE directive.
...
llvm-svn: 249960
2015-10-11 01:31:55 +00:00
Rui Ueyama
1890799f0c
Re-apply r249630: ELF2: Use `-flavor gnu2` after `not` to fix Windows buildbot.
...
Thanks to George Rimar's r249696, `not` is now able to find ld.lld2
executable correctly.
llvm-svn: 249746
2015-10-08 20:57:29 +00:00
Davide Italiano
68a39a6565
[ELF2] Implement linker script SEARCH_DIR() directive.
...
llvm-svn: 249707
2015-10-08 17:51:41 +00:00
Denis Protivensky
90c5099e8a
[ELF2] Add ENTRY command to the linker script
...
Set ENTRY as an entry point if -e is not specified.
Differential Revision: http://reviews.llvm.org/D13509
llvm-svn: 249661
2015-10-08 06:48:38 +00:00
Rui Ueyama
f82a0eef13
ELF2: Use `-flavor gnu2` after `not` to fix Windows buildbot.
...
`not` command on Windows is not able to find an executable from PATH
if a given command already has an extension even if the extension is
not ".exe".
llvm-svn: 249630
2015-10-07 22:20:43 +00:00
Rui Ueyama
60fe7fcc6b
ELF2: Use ld.lld2 instead of lld -flavor gnu2.
...
llvm-svn: 249573
2015-10-07 17:31:39 +00:00
Rui Ueyama
ee59282bfd
ELF2: Implement OUTPUT() linker script directive.
...
llvm-svn: 249491
2015-10-07 00:25:09 +00:00
Rui Ueyama
bd35d75e42
ELF2: Linker scripts can refer other linker scripts. Test that.
...
This did not work before r249023.
llvm-svn: 249024
2015-10-01 15:45:41 +00:00
Rui Ueyama
819f7127c0
ELF2: Move tests for linker script from basic.s to linkerscript.s.
...
llvm-svn: 248961
2015-09-30 23:15:35 +00:00