arc: Enable -Ttext-segment
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Dec 2020 12:27:28 +0000 (04:27 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Dec 2020 12:27:41 +0000 (04:27 -0800)
commit3ed3c10425a699c7884dbdbf865ad3766822ea07
treed54e4cd103ccc57f8213c2894afe60501e07ed20
parent54e75f291ef10f2ccb0549b25e0d9d207b325c79
arc: Enable -Ttext-segment

Define TEXT_START_ADDR and SHLIB_TEXT_START_ADDR with SEGMENT_START to
enable -Ttext-segment.

PR ld/26970
* scripttempl/elfarc.sc (TEXT_START_ADDR): New.  Add SEGMENT_START.
(SHLIB_TEXT_START_ADDR): Likewise.
ld/ChangeLog
ld/scripttempl/elfarc.sc