Skip to content

Commit

Permalink
reorder some header inclusions
Browse files Browse the repository at this point in the history
Change-Id: Ib168db6fd0997539192814a9329726901c5c9321
  • Loading branch information
cooljeanius committed Oct 19, 2024
1 parent 6c4162c commit 087c305
Show file tree
Hide file tree
Showing 43 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion src/bfd/aoutx.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ DESCRIPTION

#define KEEPIT udata.i

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "safe-ctype.h"
#include "bfdlink.h"

Expand Down
2 changes: 1 addition & 1 deletion src/bfd/archive64.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

/* This file supports the 64-bit (MIPS) ELF archives. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "aout/ar.h"

Expand Down
2 changes: 1 addition & 1 deletion src/bfd/archures.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "safe-ctype.h"

Expand Down
2 changes: 1 addition & 1 deletion src/bfd/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ CODE_FRAGMENT
.
*/

#include "sysdep.h"
#include "bfd.h"
#include "bfdver.h"
#include "sysdep.h"
#include <stdarg.h>
#include "libiberty.h"
#include "safe-ctype.h"
Expand Down
6 changes: 3 additions & 3 deletions src/bfd/binary.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* BFD back-end for binary objects.
/* binary.c: BFD back-end for binary objects.
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support, <[email protected]>
Expand All @@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

/* This is a BFD backend which may be used to write binary objects.
It may only be used for output, not input. The intention is that
Expand All @@ -32,8 +32,8 @@
the file. objcopy cooperates by specially setting the start
address to zero by default. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "safe-ctype.h"
#include "libbfd.h"

Expand Down
2 changes: 1 addition & 1 deletion src/bfd/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ SECTION
*/

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "libiberty.h"

Expand Down
2 changes: 1 addition & 1 deletion src/bfd/coffgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
Those functions may not use any COFF specific information, such as
coff_data (abfd). */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "coff/internal.h"
#include "libcoff.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/cofflink.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

/* This file contains the COFF backend linker code. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#include "coff/internal.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/corefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ DESCRIPTION
These are functions pertaining to core files.
*/

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"

/*
Expand Down
8 changes: 4 additions & 4 deletions src/bfd/dwarf1.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line).
/* dwarf1.c: DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line).
Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005
Free Software Foundation, Inc.
Written by Gavin Romig-Koch of Cygnus Solutions ([email protected]).
Written by Gavin Romig-Koch of Cygnus Solutions <[email protected]>.
This file is part of BFD.
Expand All @@ -18,10 +18,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
#include "libbfd.h"
#include "elf-bfd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/dwarf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
#include "libbfd.h"
#include "elf-bfd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/efi-app-ia32.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - 5th Floor, Boston, MA 02110-1301, USA. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"

#define TARGET_SYM bfd_efi_app_ia32_vec
#define TARGET_NAME "efi-app-ia32"
Expand Down
4 changes: 2 additions & 2 deletions src/bfd/efi-app-ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"

#define TARGET_SYM bfd_efi_app_ia64_vec
#define TARGET_NAME "efi-app-ia64"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elf-eh-frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "elf/dwarf2.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elf-strtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "hashtab.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elf-vxworks.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

/* This file provides routines used by all VxWorks targets. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "elf-vxworks.h"
Expand Down
4 changes: 2 additions & 2 deletions src/bfd/elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - 5th Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA. */

/*
SECTION
Expand All @@ -36,8 +36,8 @@ SECTION
#ifndef _SYSCALL32
# define _SYSCALL32
#endif /* !_SYSCALL32 */
#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#define ARCH_SIZE 0
Expand Down
6 changes: 3 additions & 3 deletions src/bfd/elf32-gen.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generic support for 32-bit ELF
/* elf32-gen.c: Generic support for 32-bit ELF
Copyright 1993, 1995, 1998, 1999, 2001, 2002, 2004, 2005
Free Software Foundation, Inc.
Expand All @@ -16,10 +16,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "elf-bfd.h"

Expand Down
6 changes: 3 additions & 3 deletions src/bfd/elf32-i386.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Intel 80386/80486-specific support for 32-bit ELF
/* elf32-i386.c: Intel 80386/80486-specific support for 32-bit ELF
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005 Free Software Foundation, Inc.
Expand All @@ -16,10 +16,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#include "elf-bfd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elf64-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "elf-bfd.h"

Expand Down
12 changes: 6 additions & 6 deletions src/bfd/elf64-x86-64.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* X86-64 specific support for 64-bit ELF
/* elf64-x86-64.c: X86-64 specific support for 64-bit ELF
Copyright 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Contributed by Jan Hubicka <[email protected]>.
Expand All @@ -17,22 +17,22 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#include "elf-bfd.h"

#include "elf/x86-64.h"

/* In case we're on a 32-bit machine, construct a 64-bit "-1" value. */
#define MINUS_ONE (~ (bfd_vma) 0)
/* In case we are on a 32-bit machine, construct a 64-bit "-1" value: */
#define MINUS_ONE (~(bfd_vma)0)

/* The relocation "howto" table. Order of fields:
type, size, bitsize, pc_relative, complain_on_overflow,
special_function, name, partial_inplace, src_mask, dst_pack, pcrel_offset. */
special_function, name, partial_inplace, src_mask, dst_pack, pcrel_offset */
static reloc_howto_type x86_64_elf_howto_table[] =
{
HOWTO(R_X86_64_NONE, 0, 0, 0, FALSE, 0, complain_overflow_dont,
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elfcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */
#ifndef ELFCODE_H
#define ELFCODE_H 1

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
#include "bfdlink.h"
#include "libbfd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/elflink.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#define ARCH_SIZE 0
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ SECTION
*/

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"

/* IMPORT from targets.c. */
Expand Down
4 changes: 2 additions & 2 deletions src/bfd/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "objalloc.h"
#include "libiberty.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/i386linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "aout/aout64.h"
#include "aout/stab_gnu.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/ihex.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ The MRI compiler uses this, which is a repeat of type 5:
18..19 Checksum in hex notation
20..21 Carriage return, line feed. */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "libiberty.h"
#include "safe-ctype.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA.
*/

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion src/bfd/libbfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"

#include "libiberty.h"
Expand Down
4 changes: 2 additions & 2 deletions src/bfd/linker.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin St., 5th Floor, Boston, MA 02110-1301, USA */

#include "bfd.h"
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
#include "bfdlink.h"
#include "genlink.h"
Expand Down
Loading

0 comments on commit 087c305

Please sign in to comment.