This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 06/19] tic54x bfd.h tidy
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 23 Sep 2019 10:25:02 +0930
- Subject: [PATCH 06/19] tic54x bfd.h tidy
- References: <20190923005515.28780-1-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.
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 4216808c2a..7080fbe970 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/coff-tic54x.c b/bfd/coff-tic54x.c
index 6c7acb4045..0c3e56ad8d 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;