Bug 26970 - -Ttext-segment 0x10000 is ignored
Summary: -Ttext-segment 0x10000 is ignored
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.36
: P2 normal
Target Milestone: 2.36
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-28 14:09 UTC by H.J. Lu
Modified: 2020-12-01 12:33 UTC (History)
0 users

See Also:
Host:
Target: arc-elf
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2020-11-28 14:09:51 UTC
ld-elf/pr26936 test is built with -Ttext-segment 0x10000, which
is ignored.
Comment 1 H.J. Lu 2020-11-29 13:17:57 UTC
A patch is posted at

https://sourceware.org/pipermail/binutils/2020-November/114327.html
Comment 2 Sourceware Commits 2020-12-01 12:29:45 UTC
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3ed3c10425a699c7884dbdbf865ad3766822ea07

commit 3ed3c10425a699c7884dbdbf865ad3766822ea07
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Dec 1 04:27:28 2020 -0800

    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.
Comment 3 H.J. Lu 2020-12-01 12:33:49 UTC
Fixed for 2.36.