forked from Imagelibrary/binutils-gdb
m68k bfd.h tidy
bfd/ * bfd-in.h: Move m68k function declaration.. * cpu-m68k.h: ..to here, new file.. * elf32-m68k.h: ..and here, new file. * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h. * bfd-in2.h: Regenerate. ld/ * emultempl/m68kelf.em: Include elf32-m68k.h. opcodes/ * m68k-dis.c: Include cpu-m68k.h
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* bfd-in.h: Move m68k function declaration..
|
||||||
|
* cpu-m68k.h: ..to here, new file..
|
||||||
|
* elf32-m68k.h: ..and here, new file.
|
||||||
|
* elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h.
|
||||||
|
* bfd-in2.h: Regenerate.
|
||||||
|
|
||||||
2019-09-23 Alan Modra <amodra@gmail.com>
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* bfd-in.h: Move bfin function declaration..
|
* bfd-in.h: Move bfin function declaration..
|
||||||
|
|||||||
10
bfd/bfd-in.h
10
bfd/bfd-in.h
@@ -664,16 +664,6 @@ _bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma);
|
|||||||
extern void _bfd_fix_excluded_sec_syms
|
extern void _bfd_fix_excluded_sec_syms
|
||||||
(bfd *, struct bfd_link_info *);
|
(bfd *, struct bfd_link_info *);
|
||||||
|
|
||||||
extern unsigned bfd_m68k_mach_to_features (int);
|
|
||||||
|
|
||||||
extern int bfd_m68k_features_to_mach (unsigned);
|
|
||||||
|
|
||||||
extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
|
|
||||||
(bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
|
|
||||||
char **);
|
|
||||||
|
|
||||||
extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int);
|
|
||||||
|
|
||||||
/* mmap hacks */
|
/* mmap hacks */
|
||||||
|
|
||||||
struct _bfd_window_internal;
|
struct _bfd_window_internal;
|
||||||
|
|||||||
@@ -671,16 +671,6 @@ _bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma);
|
|||||||
extern void _bfd_fix_excluded_sec_syms
|
extern void _bfd_fix_excluded_sec_syms
|
||||||
(bfd *, struct bfd_link_info *);
|
(bfd *, struct bfd_link_info *);
|
||||||
|
|
||||||
extern unsigned bfd_m68k_mach_to_features (int);
|
|
||||||
|
|
||||||
extern int bfd_m68k_features_to_mach (unsigned);
|
|
||||||
|
|
||||||
extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
|
|
||||||
(bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
|
|
||||||
char **);
|
|
||||||
|
|
||||||
extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int);
|
|
||||||
|
|
||||||
/* mmap hacks */
|
/* mmap hacks */
|
||||||
|
|
||||||
struct _bfd_window_internal;
|
struct _bfd_window_internal;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
#include "opcode/m68k.h"
|
#include "opcode/m68k.h"
|
||||||
|
#include "cpu-m68k.h"
|
||||||
|
|
||||||
static const bfd_arch_info_type *
|
static const bfd_arch_info_type *
|
||||||
bfd_m68k_compatible (const bfd_arch_info_type *a,
|
bfd_m68k_compatible (const bfd_arch_info_type *a,
|
||||||
|
|||||||
23
bfd/cpu-m68k.h
Normal file
23
bfd/cpu-m68k.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/* BFD library support routines.
|
||||||
|
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
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. */
|
||||||
|
|
||||||
|
extern unsigned bfd_m68k_mach_to_features (int);
|
||||||
|
|
||||||
|
extern int bfd_m68k_features_to_mach (unsigned);
|
||||||
@@ -25,6 +25,8 @@
|
|||||||
#include "elf-bfd.h"
|
#include "elf-bfd.h"
|
||||||
#include "elf/m68k.h"
|
#include "elf/m68k.h"
|
||||||
#include "opcode/m68k.h"
|
#include "opcode/m68k.h"
|
||||||
|
#include "cpu-m68k.h"
|
||||||
|
#include "elf32-m68k.h"
|
||||||
|
|
||||||
static bfd_boolean
|
static bfd_boolean
|
||||||
elf_m68k_discard_copies (struct elf_link_hash_entry *, void *);
|
elf_m68k_discard_copies (struct elf_link_hash_entry *, void *);
|
||||||
|
|||||||
25
bfd/elf32-m68k.h
Normal file
25
bfd/elf32-m68k.h
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/* Motorola 68k series support for 32-bit ELF
|
||||||
|
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
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. */
|
||||||
|
|
||||||
|
extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
|
||||||
|
(bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
|
||||||
|
char **);
|
||||||
|
|
||||||
|
extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int);
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* emultempl/m68kelf.em: Include elf32-m68k.h.
|
||||||
|
|
||||||
2019-09-23 Alan Modra <amodra@gmail.com>
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* emultempl/bfin.em: Include elf32-bfin.h.
|
* emultempl/bfin.em: Include elf32-bfin.h.
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ esac
|
|||||||
|
|
||||||
fragment <<EOF
|
fragment <<EOF
|
||||||
|
|
||||||
|
#include "elf32-m68k.h"
|
||||||
|
|
||||||
#define GOT_HANDLING_SINGLE (0)
|
#define GOT_HANDLING_SINGLE (0)
|
||||||
#define GOT_HANDLING_NEGATIVE (1)
|
#define GOT_HANDLING_NEGATIVE (1)
|
||||||
#define GOT_HANDLING_MULTIGOT (2)
|
#define GOT_HANDLING_MULTIGOT (2)
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* m68k-dis.c: Include cpu-m68k.h
|
||||||
|
|
||||||
2019-09-23 Alan Modra <amodra@gmail.com>
|
2019-09-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* mips-dis.c: Include elfxx-mips.h. Move "elf-bfd.h" and
|
* mips-dis.c: Include elfxx-mips.h. Move "elf-bfd.h" and
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include "floatformat.h"
|
#include "floatformat.h"
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "opintl.h"
|
#include "opintl.h"
|
||||||
|
#include "cpu-m68k.h"
|
||||||
#include "opcode/m68k.h"
|
#include "opcode/m68k.h"
|
||||||
|
|
||||||
/* Local function prototypes. */
|
/* Local function prototypes. */
|
||||||
|
|||||||
Reference in New Issue
Block a user