diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-23 10:12:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-23 10:27:22 +0930 |
commit | 0b4453c791106ab62011b59f97611f9ff21cda9f (patch) | |
tree | fa4e755dbf52de6ec215fd740078c8b12a8f996d /ld | |
parent | f5c5b7c124934b464b67c7c3c53a1c62a7f4e98a (diff) | |
download | gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.zip gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.tar.gz gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.tar.bz2 |
elf bfd.h tidy
bfd/
* bfd-in.h (enum notice_asneeded_action): Move to bfdlink.h.
Move most other elf declarations..
* elf-bfd.h: ..to here.
* bfd-in2.h: Regenerate.
include/
* bfdlink.h (enum notice_asneeded_action): Define.
ld/
* deffilep.y: Include bfdlink.h.
* ldelf.c: Likewise.
* ldelfgen.c: Likewise.
* ldver.c: Likewise.
* mri.c: Likewise.
* emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
Comment.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 10 | ||||
-rw-r--r-- | ld/deffilep.y | 1 | ||||
-rw-r--r-- | ld/emultempl/irix.em | 7 | ||||
-rw-r--r-- | ld/ldelf.c | 1 | ||||
-rw-r--r-- | ld/ldelfgen.c | 1 | ||||
-rw-r--r-- | ld/ldver.c | 2 | ||||
-rw-r--r-- | ld/mri.c | 1 |
7 files changed, 18 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 07e4611..fe27434 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,15 @@ 2019-09-23 Alan Modra <amodra@gmail.com> + * deffilep.y: Include bfdlink.h. + * ldelf.c: Likewise. + * ldelfgen.c: Likewise. + * ldver.c: Likewise. + * mri.c: Likewise. + * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h. + Comment. + +2019-09-23 Alan Modra <amodra@gmail.com> + * emultempl/m68kelf.em: Include elf32-m68k.h. 2019-09-23 Alan Modra <amodra@gmail.com> diff --git a/ld/deffilep.y b/ld/deffilep.y index 7f74157..92116e6 100644 --- a/ld/deffilep.y +++ b/ld/deffilep.y @@ -23,6 +23,7 @@ #include "libiberty.h" #include "safe-ctype.h" #include "bfd.h" +#include "bfdlink.h" #include "ld.h" #include "ldmisc.h" #include "deffile.h" diff --git a/ld/emultempl/irix.em b/ld/emultempl/irix.em index ddd5fd6..e52c4a2 100644 --- a/ld/emultempl/irix.em +++ b/ld/emultempl/irix.em @@ -19,11 +19,10 @@ # MA 02110-1301, USA. # -fragment <<EOF +# This file is sourced from elf.em, and defines extra irix specific +# functions. -#include "ld.h" -#include "ldmain.h" -#include "libiberty.h" +fragment <<EOF /* The native IRIX linker will always create a DT_SONAME for shared objects. While this shouldn't really be necessary for ABI conformance, some versions @@ -23,6 +23,7 @@ #include "libiberty.h" #include "filenames.h" #include "safe-ctype.h" +#include "bfdlink.h" #include "ld.h" #include "ldmain.h" #include "ldmisc.h" diff --git a/ld/ldelfgen.c b/ld/ldelfgen.c index 98bcecd..142a669 100644 --- a/ld/ldelfgen.c +++ b/ld/ldelfgen.c @@ -20,6 +20,7 @@ #include "sysdep.h" #include "bfd.h" +#include "bfdlink.h" #include "ld.h" #include "ldmain.h" #include "ldmisc.h" @@ -21,7 +21,7 @@ #include "sysdep.h" #include "bfd.h" #include "bfdver.h" - +#include "bfdlink.h" #include "ld.h" #include "ldver.h" #include "ldexp.h" @@ -25,6 +25,7 @@ #include "sysdep.h" #include "bfd.h" +#include "bfdlink.h" #include "ld.h" #include "ldexp.h" #include "ldlang.h" |