Allow a second -T<section>=<addr> to override a previous version on the same linker...
authorNick Clifton <nickc@redhat.com>
Mon, 27 Jun 2016 15:35:58 +0000 (16:35 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 27 Jun 2016 15:35:58 +0000 (16:35 +0100)
commit42b7a39bf6eb2e90fb1b07c2d53d7a93263508d2
treef0a9def52397f3cb301100dc7770dc8da5e61b55
parent95daf21060008545515e94aeba501082e8710cc0
Allow a second -T<section>=<addr> to override a previous version on the same linker command line.

PR ld/20302
* lexsup.c (set_segment_start): If resetting the start address of
a section, remember to generate a new script element as well.
* testsuite/ld-scripts/pr20302.d: New test.
* testsuite/ld-scripts/scripts.exp: Run the new test.
ld/ChangeLog
ld/lexsup.c
ld/testsuite/ld-scripts/pr20302.d [new file with mode: 0644]
ld/testsuite/ld-scripts/script.exp