From f6a8b8c7ac2d5369070a6b76a94ee0f3052433ff Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 19 Apr 2018 14:13:41 +0930 Subject: PR22537, Segmentation fault with static PIE The only stub type that makes sense for undefined symbols, or those defined in shared libraries, is a plt call stub. This patch arranges to have "destination" set to -1 on such symbols, making for an easy test in hppa_type_of_stub. PR 22537 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1. (hppa_type_of_stub): Don't return a long branch stub for symbols other than those defined statically. --- bfd/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bfd/ChangeLog') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2d89641..d92c334 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2018-04-19 Alan Modra + PR 22537 + * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1. + (hppa_type_of_stub): Don't return a long branch stub for + symbols other than those defined statically. + +2018-04-19 Alan Modra + * Makefile.am: Revert 2018-04-18 coff-mips changes. * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec to selvecs for mips targets change 2018-04-18. -- cgit v1.1