aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-s390-common.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-19 11:57:40 +0930
committerAlan Modra <amodra@gmail.com>2015-08-19 12:51:06 +0930
commit3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418 (patch)
tree6bebcb8234ea16c10fa7651e8aa5815e46867125 /bfd/elf-s390-common.c
parentb45e00b3ed40589af75b8a36a67905ae265a20f8 (diff)
downloadgdb-3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418.zip
gdb-3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418.tar.gz
gdb-3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418.tar.bz2
Add bfd_link_pde, and simplify some tests of link_info.type
include/ * bfdlink.h (bfd_link_pde): Define. bfd/ * elf-s390-common.c: Simplify expressions using bfd_linke_executable, bfd_link_pie and bfd_link_pic. * elf32-arm.c: Likewise. * elf32-bfin.c: Likewise. * elf32-frv.c: Likewise. * elf32-m68k.c: Likewise. * elf32-nios2.c: Likewise. * elf32-ppc.c: Likewise. * elf32-s390.c: Likewise. * elf32-sh.c: Likewise. * elf64-alpha.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elflink.c: Likewise.
Diffstat (limited to 'bfd/elf-s390-common.c')
-rw-r--r--bfd/elf-s390-common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf-s390-common.c b/bfd/elf-s390-common.c
index 5c36ec8..6b5b17b 100644
--- a/bfd/elf-s390-common.c
+++ b/bfd/elf-s390-common.c
@@ -151,8 +151,7 @@ keep:
point to the IPLT slot. That way the referencing shared lib will
always get the PLT slot address when resolving the respective
R_390_GLOB_DAT/R_390_64 relocs on that symbol. */
- if (bfd_link_executable (info)
- && !bfd_link_pic (info)
+ if (bfd_link_pde (info)
&& h->def_regular
&& h->ref_dynamic)
{
@@ -187,7 +186,7 @@ keep:
if (h->got.refcount <= 0
|| (bfd_link_pic (info)
&& (h->dynindx == -1 || h->forced_local))
- || (bfd_link_executable (info) && bfd_link_pic (info))
+ || bfd_link_pie (info)
|| htab->sgot == NULL)
{
/* Use .got.iplt. */