diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-23 10:03:37 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-23 10:27:21 +0930 |
commit | c348479ddd10079b8b8714598d8e1458d25e095d (patch) | |
tree | 68ae91b67892efb2c9723716e4dfd71fec5f7c5a /bfd | |
parent | h8300 bfd.h tidy (diff) | |
download | binutils-gdb-c348479ddd10079b8b8714598d8e1458d25e095d.tar.gz binutils-gdb-c348479ddd10079b8b8714598d8e1458d25e095d.tar.bz2 binutils-gdb-c348479ddd10079b8b8714598d8e1458d25e095d.zip |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/bfd-in.h | 8 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 8 | ||||
-rw-r--r-- | bfd/coff-tic54x.c | 4 |
4 files changed, 9 insertions, 18 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9130fd510bb..d42ead0b577 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2019-09-23 Alan Modra <amodra@gmail.com> + * 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. + +2019-09-23 Alan Modra <amodra@gmail.com> + * bfd-in.h: Move h8300 function declaration to.. * cpu-h8300.h: ..here, new file. * cpu-h8300.c: Include cpu-h8300.h. diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 4216808c2ad..7080fbe970e 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -993,11 +993,3 @@ extern bfd_boolean elf32_aarch64_size_stubs void (*) (void)); extern bfd_boolean elf32_aarch64_build_stubs (struct bfd_link_info *); - - -/* TI COFF load page support. */ -extern void bfd_ticoff_set_section_load_page - (struct bfd_section *, int); - -extern int bfd_ticoff_get_section_load_page - (struct bfd_section *); diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index a5c0f5806d3..90d9fc9c07c 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1000,14 +1000,6 @@ extern bfd_boolean elf32_aarch64_size_stubs void (*) (void)); extern bfd_boolean elf32_aarch64_build_stubs (struct bfd_link_info *); - - -/* TI COFF load page support. */ -extern void bfd_ticoff_set_section_load_page - (struct bfd_section *, int); - -extern int bfd_ticoff_get_section_load_page - (struct bfd_section *); /* Extracted from init.c. */ unsigned int bfd_init (void); diff --git a/bfd/coff-tic54x.c b/bfd/coff-tic54x.c index 6c7acb4045a..0c3e56ad8d5 100644 --- a/bfd/coff-tic54x.c +++ b/bfd/coff-tic54x.c @@ -82,14 +82,14 @@ tic54x_getl_signed_32 (const void *p) #define coff_get_section_load_page bfd_ticoff_get_section_load_page #define coff_set_section_load_page bfd_ticoff_set_section_load_page -void +static void bfd_ticoff_set_section_load_page (asection *sect, int page) { sect->lma = (sect->lma & ADDR_MASK) | PG_TO_FLAG(page); } -int +static int bfd_ticoff_get_section_load_page (asection *sect) { int page; |