From 3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 19 Aug 2015 11:57:40 +0930 Subject: 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. --- bfd/elflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elflink.c') diff --git a/bfd/elflink.c b/bfd/elflink.c index 7f04271..76f6493 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -633,7 +633,7 @@ bfd_elf_record_link_assignment (bfd *output_bfd, if ((h->def_dynamic || h->ref_dynamic || bfd_link_pic (info) - || (bfd_link_executable (info) + || (bfd_link_pde (info) && elf_hash_table (info)->is_relocatable_executable)) && h->dynindx == -1) { -- cgit v1.1