mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 23:23:09 +00:00
* 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.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2008-10-20 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-10-20 Alan Modra <amodra@bigpond.net.au>
|
2008-10-20 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elflink.c (bfd_elf_final_link): Move code reading relocs to..
|
* elflink.c (bfd_elf_final_link): Move code reading relocs to..
|
||||||
|
|||||||
@@ -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.
|
/* Scan a bfd for a .directive section, and if found process it.
|
||||||
Returns TRUE upon success, FALSE otherwise. */
|
Returns TRUE upon success, FALSE otherwise. */
|
||||||
bfd_boolean bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd);
|
|
||||||
|
|
||||||
bfd_boolean
|
static bfd_boolean
|
||||||
bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd)
|
sh_symbian_process_directives (bfd *abfd, struct bfd_link_info *info)
|
||||||
{
|
{
|
||||||
bfd_boolean result = FALSE;
|
bfd_boolean result = FALSE;
|
||||||
bfd_byte * contents;
|
bfd_byte * contents;
|
||||||
@@ -617,18 +616,12 @@ sh_symbian_relocate_section (bfd * output_bfd,
|
|||||||
contents, relocs, local_syms, local_sections);
|
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_SYM bfd_elf32_shl_symbian_vec
|
||||||
#define TARGET_LITTLE_NAME "elf32-shl-symbian"
|
#define TARGET_LITTLE_NAME "elf32-shl-symbian"
|
||||||
|
|
||||||
#undef elf_backend_relocate_section
|
#undef elf_backend_relocate_section
|
||||||
#define elf_backend_relocate_section sh_symbian_relocate_section
|
#define elf_backend_relocate_section sh_symbian_relocate_section
|
||||||
#undef elf_backend_check_directives
|
#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"
|
#include "elf32-target.h"
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ static bfd_vma opd_entry_value
|
|||||||
#define elf_backend_create_dynamic_sections ppc64_elf_create_dynamic_sections
|
#define elf_backend_create_dynamic_sections ppc64_elf_create_dynamic_sections
|
||||||
#define elf_backend_copy_indirect_symbol ppc64_elf_copy_indirect_symbol
|
#define elf_backend_copy_indirect_symbol ppc64_elf_copy_indirect_symbol
|
||||||
#define elf_backend_add_symbol_hook ppc64_elf_add_symbol_hook
|
#define elf_backend_add_symbol_hook ppc64_elf_add_symbol_hook
|
||||||
#define elf_backend_check_directives ppc64_elf_check_directives
|
#define elf_backend_check_directives ppc64_elf_process_dot_syms
|
||||||
#define elf_backend_as_needed_cleanup ppc64_elf_as_needed_cleanup
|
#define elf_backend_as_needed_cleanup ppc64_elf_as_needed_cleanup
|
||||||
#define elf_backend_archive_symbol_lookup ppc64_elf_archive_symbol_lookup
|
#define elf_backend_archive_symbol_lookup ppc64_elf_archive_symbol_lookup
|
||||||
#define elf_backend_check_relocs ppc64_elf_check_relocs
|
#define elf_backend_check_relocs ppc64_elf_check_relocs
|
||||||
@@ -3620,7 +3620,7 @@ struct ppc_link_hash_table
|
|||||||
/* Set on error. */
|
/* Set on error. */
|
||||||
unsigned int stub_error:1;
|
unsigned int stub_error:1;
|
||||||
|
|
||||||
/* Temp used by ppc64_elf_check_directives. */
|
/* Temp used by ppc64_elf_process_dot_syms. */
|
||||||
unsigned int twiddled_syms:1;
|
unsigned int twiddled_syms:1;
|
||||||
|
|
||||||
/* Incremented every time we size stubs. */
|
/* Incremented every time we size stubs. */
|
||||||
@@ -4438,7 +4438,7 @@ add_symbol_adjust (struct ppc_link_hash_entry *eh, struct bfd_link_info *info)
|
|||||||
/* Process list of dot-symbols we made in link_hash_newfunc. */
|
/* Process list of dot-symbols we made in link_hash_newfunc. */
|
||||||
|
|
||||||
static bfd_boolean
|
static bfd_boolean
|
||||||
ppc64_elf_check_directives (bfd *ibfd, struct bfd_link_info *info)
|
ppc64_elf_process_dot_syms (bfd *ibfd, struct bfd_link_info *info)
|
||||||
{
|
{
|
||||||
struct ppc_link_hash_table *htab;
|
struct ppc_link_hash_table *htab;
|
||||||
struct ppc_link_hash_entry **p, *eh;
|
struct ppc_link_hash_entry **p, *eh;
|
||||||
|
|||||||
Reference in New Issue
Block a user