[ELF] - Implemented --section-start, -Ttext, -Tdata, -Tbss options.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 14 Sep 2016 13:07:13 +0000 (13:07 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 14 Sep 2016 13:07:13 +0000 (13:07 +0000)
commitd73ef1738b133c3f264b590eb996991c2f13cb9f
treeb0b9f25f2715d8abf23fce861106c9bef07823f0
parentac73ea34a474f578edde75ef4aaa243c8d2847d0
[ELF] - Implemented --section-start, -Ttext, -Tdata, -Tbss options.

--section-start=sectionname=org
Locate a section in the output file at the absolute address given by org.
You may use this option as many times as necessary to locate multiple sections in the command line.
 org must be a single hexadecimal integer; for compatibility with other linkers,
you may omit the leading `0x' usually associated with hexadecimal values.
Note: there should be no white space between sectionname, the equals sign (“<=>”), and org.

-Tbss=org
-Tdata=org
-Ttext=org
Same as --section-start, with .bss, .data or .text as the sectionname.

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

llvm-svn: 281458
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/Writer.cpp
lld/test/ELF/sectionstart.s [new file with mode: 0644]