GNU Binutils with patches for OS216
Revision | c348479ddd10079b8b8714598d8e1458d25e095d (tree) |
---|---|
Time | 2019-09-23 09:57:21 |
Author | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
tic54x bfd.h tidy
* bfd-in.h: Delete ticoff function declarations.
* coff-tic54x.c (bfd_ticoff_set_section_load_page),
(bfd_ticoff_get_section_load_page): Make static.
* bfd-in2.h: Regenerate.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2019-09-23 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + * bfd-in.h: Delete ticoff function declarations. | |
4 | + * coff-tic54x.c (bfd_ticoff_set_section_load_page), | |
5 | + (bfd_ticoff_get_section_load_page): Make static. | |
6 | + * bfd-in2.h: Regenerate. | |
7 | + | |
8 | +2019-09-23 Alan Modra <amodra@gmail.com> | |
9 | + | |
3 | 10 | * bfd-in.h: Move h8300 function declaration to.. |
4 | 11 | * cpu-h8300.h: ..here, new file. |
5 | 12 | * cpu-h8300.c: Include cpu-h8300.h. |
@@ -993,11 +993,3 @@ extern bfd_boolean elf32_aarch64_size_stubs | ||
993 | 993 | void (*) (void)); |
994 | 994 | extern bfd_boolean elf32_aarch64_build_stubs |
995 | 995 | (struct bfd_link_info *); |
996 | - | |
997 | - | |
998 | -/* TI COFF load page support. */ | |
999 | -extern void bfd_ticoff_set_section_load_page | |
1000 | - (struct bfd_section *, int); | |
1001 | - | |
1002 | -extern int bfd_ticoff_get_section_load_page | |
1003 | - (struct bfd_section *); |
@@ -1000,14 +1000,6 @@ extern bfd_boolean elf32_aarch64_size_stubs | ||
1000 | 1000 | void (*) (void)); |
1001 | 1001 | extern bfd_boolean elf32_aarch64_build_stubs |
1002 | 1002 | (struct bfd_link_info *); |
1003 | - | |
1004 | - | |
1005 | -/* TI COFF load page support. */ | |
1006 | -extern void bfd_ticoff_set_section_load_page | |
1007 | - (struct bfd_section *, int); | |
1008 | - | |
1009 | -extern int bfd_ticoff_get_section_load_page | |
1010 | - (struct bfd_section *); | |
1011 | 1003 | /* Extracted from init.c. */ |
1012 | 1004 | unsigned int bfd_init (void); |
1013 | 1005 |
@@ -82,14 +82,14 @@ tic54x_getl_signed_32 (const void *p) | ||
82 | 82 | #define coff_get_section_load_page bfd_ticoff_get_section_load_page |
83 | 83 | #define coff_set_section_load_page bfd_ticoff_set_section_load_page |
84 | 84 | |
85 | -void | |
85 | +static void | |
86 | 86 | bfd_ticoff_set_section_load_page (asection *sect, |
87 | 87 | int page) |
88 | 88 | { |
89 | 89 | sect->lma = (sect->lma & ADDR_MASK) | PG_TO_FLAG(page); |
90 | 90 | } |
91 | 91 | |
92 | -int | |
92 | +static int | |
93 | 93 | bfd_ticoff_get_section_load_page (asection *sect) |
94 | 94 | { |
95 | 95 | int page; |