Always create dynamic sections for -E/--dynamic-list
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 18 Feb 2016 11:13:19 +0000 (03:13 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 18 Feb 2016 11:13:51 +0000 (03:13 -0800)
commitbf89386a862ace008f0152bca8bddf996d3993c8
treed8e06697989cb979af0263ddaef268a4b79d5137
parent06ea285dcbfb67189e46bee7f4f7c9b4140fc681
Always create dynamic sections for -E/--dynamic-list

In embedded environments, including boot loaders, the non-PIC executable
needs to export its symbols to modules loaded in the future.  We should
always create dynamic sections for -E/--dynamic-list.

bfd/

PR ld/19617
* elflink.c (elf_link_add_object_symbols): Always create dynamic
sections for -E/--dynamic-list.

ld/

PR ld/19617
* testsuite/ld-elf/pr19617.s: New file.
* testsuite/ld-elf/pr19617a.d: Likewise.
* testsuite/ld-elf/pr19617b.d: Likewise.
* testsuite/ld-elf/pr19617c.d: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr19617.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr19617a.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr19617b.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr19617c.d [new file with mode: 0644]
This page took 0.025908 seconds and 4 git commands to generate.