diff options
author | Alan Modra <amodra@gmail.com> | 2015-08-19 11:57:40 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-08-19 12:51:06 +0930 |
commit | 3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418 (patch) | |
tree | 6bebcb8234ea16c10fa7651e8aa5815e46867125 /include | |
parent | b45e00b3ed40589af75b8a36a67905ae265a20f8 (diff) | |
download | gdb-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 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/bfdlink.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index e1bd6ae..5197abf 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2015-08-19 Alan Modra <amodra@gmail.com> + + * bfdlink.h (bfd_link_pde): Define. + 2015-08-18 H.J. Lu <hongjiu.lu@intel.com> * include/bfdlink.h (output_type): New enum. diff --git a/include/bfdlink.h b/include/bfdlink.h index 797a465..62309a5 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -274,6 +274,8 @@ enum output_type #define bfd_link_pic(info) (info)->pic #define bfd_link_pie(info) (bfd_link_executable (info) \ && bfd_link_pic (info)) +#define bfd_link_pde(info) (bfd_link_executable (info) \ + && !bfd_link_pic (info)) /* This structure holds all the information needed to communicate between BFD and the linker when doing a link. */ |