diff options
author | 2019-09-23 10:12:31 +0930 | |
---|---|---|
committer | 2019-09-23 10:27:22 +0930 | |
commit | 0b4453c791106ab62011b59f97611f9ff21cda9f (patch) | |
tree | fa4e755dbf52de6ec215fd740078c8b12a8f996d /ld | |
parent | m68k bfd.h tidy (diff) | |
download | binutils-gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.tar.gz binutils-gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.tar.bz2 binutils-gdb-0b4453c791106ab62011b59f97611f9ff21cda9f.zip |
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 07e4611e005..fe27434bf27 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 7f741570656..92116e68a8e 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 ddd5fd69e5c..e52c4a2d694 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 diff --git a/ld/ldelf.c b/ld/ldelf.c index e43d33d4325..3d12e3aa708 100644 --- a/ld/ldelf.c +++ b/ld/ldelf.c @@ -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 98bcecd89fc..142a669db9c 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" diff --git a/ld/ldver.c b/ld/ldver.c index fb2e52f4c50..7be0242ab20 100644 --- a/ld/ldver.c +++ b/ld/ldver.c @@ -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" |