Don't make symbols dynamic other than undef weak
authorAlan Modra <amodra@gmail.com>
Mon, 2 Jan 2017 12:01:27 +0000 (22:31 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Jan 2017 12:03:09 +0000 (22:33 +1030)
commit595e0a47f57b414843261303b8aa5036fd1fa1e3
treef6628f41d8eaa87deeef7785445dd8347183788b
parent7bd9df3bcdb1f736b696566b6142cb94d6b9b0d9
Don't make symbols dynamic other than undef weak

Fixes: tmpdir/pr14525: symbol lookup error: tmpdir/pr14525: undefined
symbol: __executable_start
FAIL: PIE PR ld/14525

* elf32-hppa.c (ensure_undef_weak_dynamic): New function.
(allocate_plt_static, allocate_dynrelocs): Use it.
bfd/ChangeLog
bfd/elf32-hppa.c