summaryrefslogtreecommitdiff
path: root/bfd/elf32-sh-symbian.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-10-20 11:05:47 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-10-20 11:05:47 +0000
commitb3cb5fa5c9ba9dbd60fa215bd2722291b14b0cc3 (patch)
tree31234a95974971a698d7adc75f17b81971b1f7a2 /bfd/elf32-sh-symbian.c
parent360a96f0ba250507685b6071e381db2ea30911d9 (diff)
downloadgdb-b3cb5fa5c9ba9dbd60fa215bd2722291b14b0cc3.tar.gz
* elf64-ppc.c (ppc64_elf_process_dot_syms): Renamed from
ppc64_elf_check_directives. * elf32-sh-symbian.c (sh_symbian_process_directives): Combine.. (sh_symbian_check_directives): ..this (bfd_elf32_sh_symbian_process_directives) ..and this function.
Diffstat (limited to 'bfd/elf32-sh-symbian.c')
-rw-r--r--bfd/elf32-sh-symbian.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/bfd/elf32-sh-symbian.c b/bfd/elf32-sh-symbian.c
index cec0d032b62..25e3af9e0ff 100644
--- a/bfd/elf32-sh-symbian.c
+++ b/bfd/elf32-sh-symbian.c
@@ -392,10 +392,9 @@ sh_symbian_process_embedded_commands (struct bfd_link_info *info, bfd * abfd,
/* Scan a bfd for a .directive section, and if found process it.
Returns TRUE upon success, FALSE otherwise. */
-bfd_boolean bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd);
-bfd_boolean
-bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd)
+static bfd_boolean
+sh_symbian_process_directives (bfd *abfd, struct bfd_link_info *info)
{
bfd_boolean result = FALSE;
bfd_byte * contents;
@@ -617,18 +616,12 @@ sh_symbian_relocate_section (bfd * output_bfd,
contents, relocs, local_syms, local_sections);
}
-static bfd_boolean
-sh_symbian_check_directives (bfd *abfd, struct bfd_link_info *info)
-{
- return bfd_elf32_sh_symbian_process_directives (info, abfd);
-}
-
#define TARGET_LITTLE_SYM bfd_elf32_shl_symbian_vec
#define TARGET_LITTLE_NAME "elf32-shl-symbian"
#undef elf_backend_relocate_section
#define elf_backend_relocate_section sh_symbian_relocate_section
#undef elf_backend_check_directives
-#define elf_backend_check_directives sh_symbian_check_directives
+#define elf_backend_check_directives sh_symbian_process_directives
#include "elf32-target.h"