GNU Binutils with patches for OS216
修订版 | f5c5b7c124934b464b67c7c3c53a1c62a7f4e98a (tree) |
---|---|
时间 | 2019-09-23 09:57:22 |
作者 | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
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
@@ -1,5 +1,13 @@ | ||
1 | 1 | 2019-09-23 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + * bfd-in.h: Move m68k function declaration.. | |
4 | + * cpu-m68k.h: ..to here, new file.. | |
5 | + * elf32-m68k.h: ..and here, new file. | |
6 | + * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h. | |
7 | + * bfd-in2.h: Regenerate. | |
8 | + | |
9 | +2019-09-23 Alan Modra <amodra@gmail.com> | |
10 | + | |
3 | 11 | * bfd-in.h: Move bfin function declaration.. |
4 | 12 | * elf32-bfin.h: ..to here, new file. |
5 | 13 | * elf32-bfin.c: Include elf32-bfin.h. |
@@ -664,16 +664,6 @@ _bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma); | ||
664 | 664 | extern void _bfd_fix_excluded_sec_syms |
665 | 665 | (bfd *, struct bfd_link_info *); |
666 | 666 | |
667 | -extern unsigned bfd_m68k_mach_to_features (int); | |
668 | - | |
669 | -extern int bfd_m68k_features_to_mach (unsigned); | |
670 | - | |
671 | -extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs | |
672 | - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, | |
673 | - char **); | |
674 | - | |
675 | -extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int); | |
676 | - | |
677 | 667 | /* mmap hacks */ |
678 | 668 | |
679 | 669 | struct _bfd_window_internal; |
@@ -671,16 +671,6 @@ _bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma); | ||
671 | 671 | extern void _bfd_fix_excluded_sec_syms |
672 | 672 | (bfd *, struct bfd_link_info *); |
673 | 673 | |
674 | -extern unsigned bfd_m68k_mach_to_features (int); | |
675 | - | |
676 | -extern int bfd_m68k_features_to_mach (unsigned); | |
677 | - | |
678 | -extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs | |
679 | - (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, | |
680 | - char **); | |
681 | - | |
682 | -extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int); | |
683 | - | |
684 | 674 | /* mmap hacks */ |
685 | 675 | |
686 | 676 | struct _bfd_window_internal; |
@@ -23,6 +23,7 @@ | ||
23 | 23 | #include "bfd.h" |
24 | 24 | #include "libbfd.h" |
25 | 25 | #include "opcode/m68k.h" |
26 | +#include "cpu-m68k.h" | |
26 | 27 | |
27 | 28 | static const bfd_arch_info_type * |
28 | 29 | bfd_m68k_compatible (const bfd_arch_info_type *a, |
@@ -0,0 +1,23 @@ | ||
1 | +/* BFD library support routines. | |
2 | + Copyright (C) 2019 Free Software Foundation, Inc. | |
3 | + | |
4 | + This file is part of BFD, the Binary File Descriptor library. | |
5 | + | |
6 | + This program is free software; you can redistribute it and/or modify | |
7 | + it under the terms of the GNU General Public License as published by | |
8 | + the Free Software Foundation; either version 3 of the License, or | |
9 | + (at your option) any later version. | |
10 | + | |
11 | + This program is distributed in the hope that it will be useful, | |
12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + GNU General Public License for more details. | |
15 | + | |
16 | + You should have received a copy of the GNU General Public License | |
17 | + along with this program; if not, write to the Free Software | |
18 | + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
19 | + MA 02110-1301, USA. */ | |
20 | + | |
21 | +extern unsigned bfd_m68k_mach_to_features (int); | |
22 | + | |
23 | +extern int bfd_m68k_features_to_mach (unsigned); |
@@ -25,6 +25,8 @@ | ||
25 | 25 | #include "elf-bfd.h" |
26 | 26 | #include "elf/m68k.h" |
27 | 27 | #include "opcode/m68k.h" |
28 | +#include "cpu-m68k.h" | |
29 | +#include "elf32-m68k.h" | |
28 | 30 | |
29 | 31 | static bfd_boolean |
30 | 32 | elf_m68k_discard_copies (struct elf_link_hash_entry *, void *); |
@@ -0,0 +1,25 @@ | ||
1 | +/* Motorola 68k series support for 32-bit ELF | |
2 | + Copyright (C) 2019 Free Software Foundation, Inc. | |
3 | + | |
4 | + This file is part of BFD, the Binary File Descriptor library. | |
5 | + | |
6 | + This program is free software; you can redistribute it and/or modify | |
7 | + it under the terms of the GNU General Public License as published by | |
8 | + the Free Software Foundation; either version 3 of the License, or | |
9 | + (at your option) any later version. | |
10 | + | |
11 | + This program is distributed in the hope that it will be useful, | |
12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + GNU General Public License for more details. | |
15 | + | |
16 | + You should have received a copy of the GNU General Public License | |
17 | + along with this program; if not, write to the Free Software | |
18 | + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
19 | + MA 02110-1301, USA. */ | |
20 | + | |
21 | +extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs | |
22 | + (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, | |
23 | + char **); | |
24 | + | |
25 | +extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int); |
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2019-09-23 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + * emultempl/m68kelf.em: Include elf32-m68k.h. | |
4 | + | |
5 | +2019-09-23 Alan Modra <amodra@gmail.com> | |
6 | + | |
3 | 7 | * emultempl/bfin.em: Include elf32-bfin.h. |
4 | 8 | |
5 | 9 | 2019-09-23 Alan Modra <amodra@gmail.com> |
@@ -45,6 +45,8 @@ esac | ||
45 | 45 | |
46 | 46 | fragment <<EOF |
47 | 47 | |
48 | +#include "elf32-m68k.h" | |
49 | + | |
48 | 50 | #define GOT_HANDLING_SINGLE (0) |
49 | 51 | #define GOT_HANDLING_NEGATIVE (1) |
50 | 52 | #define GOT_HANDLING_MULTIGOT (2) |
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2019-09-23 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + * m68k-dis.c: Include cpu-m68k.h | |
4 | + | |
5 | +2019-09-23 Alan Modra <amodra@gmail.com> | |
6 | + | |
3 | 7 | * mips-dis.c: Include elfxx-mips.h. Move "elf-bfd.h" and |
4 | 8 | "elf/mips.h" earlier. |
5 | 9 |
@@ -23,7 +23,7 @@ | ||
23 | 23 | #include "floatformat.h" |
24 | 24 | #include "libiberty.h" |
25 | 25 | #include "opintl.h" |
26 | - | |
26 | +#include "cpu-m68k.h" | |
27 | 27 | #include "opcode/m68k.h" |
28 | 28 | |
29 | 29 | /* Local function prototypes. */ |