2001-02-01 Kazu Hirata <kazu@hxi.com>
* elf-m10300.c: Fix formatting.
This commit is contained in:
parent
0088edd2a0
commit
010ac81f2a
|
@ -1,3 +1,7 @@
|
|||
2001-02-01 Kazu Hirata <kazu@hxi.com>
|
||||
|
||||
* elf-m10300.c: Fix formatting.
|
||||
|
||||
2001-01-30 Alan Modra <alan@linuxcare.com.au>
|
||||
|
||||
* elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Matsushita 10300 specific support for 32-bit ELF
|
||||
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
@ -23,8 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
#include "elf-bfd.h"
|
||||
#include "elf/mn10300.h"
|
||||
|
||||
struct elf32_mn10300_link_hash_entry
|
||||
{
|
||||
struct elf32_mn10300_link_hash_entry {
|
||||
/* The basic elf link hash table entry. */
|
||||
struct elf_link_hash_entry root;
|
||||
|
||||
|
@ -62,8 +62,7 @@ struct elf32_mn10300_link_hash_entry
|
|||
/* We derive a hash table from the main elf linker hash table so
|
||||
we can store state variables and a secondary hash table without
|
||||
resorting to global variables. */
|
||||
struct elf32_mn10300_link_hash_table
|
||||
{
|
||||
struct elf32_mn10300_link_hash_table {
|
||||
/* The main hash table. */
|
||||
struct elf_link_hash_table root;
|
||||
|
||||
|
@ -119,8 +118,7 @@ static void compute_function_info
|
|||
does absolutely nothing. */
|
||||
#define USE_RELA
|
||||
|
||||
static reloc_howto_type elf_mn10300_howto_table[] =
|
||||
{
|
||||
static reloc_howto_type elf_mn10300_howto_table[] = {
|
||||
/* Dummy relocation. Does nothing. */
|
||||
HOWTO (R_MN10300_NONE,
|
||||
0,
|
||||
|
@ -264,17 +262,14 @@ static reloc_howto_type elf_mn10300_howto_table[] =
|
|||
0xffffff,
|
||||
0xffffff,
|
||||
false),
|
||||
|
||||
};
|
||||
|
||||
struct mn10300_reloc_map
|
||||
{
|
||||
struct mn10300_reloc_map {
|
||||
bfd_reloc_code_real_type bfd_reloc_val;
|
||||
unsigned char elf_reloc_val;
|
||||
};
|
||||
|
||||
static const struct mn10300_reloc_map mn10300_reloc_map[] =
|
||||
{
|
||||
static const struct mn10300_reloc_map mn10300_reloc_map[] = {
|
||||
{ BFD_RELOC_NONE, R_MN10300_NONE, },
|
||||
{ BFD_RELOC_32, R_MN10300_32, },
|
||||
{ BFD_RELOC_16, R_MN10300_16, },
|
||||
|
@ -944,7 +939,8 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
if (new_name == 0)
|
||||
goto error_return;
|
||||
|
||||
sprintf (new_name, "%s_%08x", sym_name, (int)sym_sec);
|
||||
sprintf (new_name, "%s_%08x",
|
||||
sym_name, (int) sym_sec);
|
||||
sym_name = new_name;
|
||||
|
||||
hash = (struct elf32_mn10300_link_hash_entry *)
|
||||
|
@ -1024,7 +1020,8 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
if (new_name == 0)
|
||||
goto error_return;
|
||||
|
||||
sprintf (new_name, "%s_%08x", sym_name, (int)sym_sec);
|
||||
sprintf (new_name, "%s_%08x",
|
||||
sym_name, (int) sym_sec);
|
||||
sym_name = new_name;
|
||||
|
||||
hash = (struct elf32_mn10300_link_hash_entry *)
|
||||
|
@ -1953,8 +1950,8 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
|
||||
|
||||
/* Fix the relocation's type. */
|
||||
irel->r_info
|
||||
= ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
|
||||
irel->r_info =
|
||||
ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
|
||||
R_MN10300_8);
|
||||
|
||||
/* Delete two bytes of data. */
|
||||
|
@ -1969,7 +1966,6 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2030,8 +2026,8 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
|
||||
|
||||
/* Fix the relocation's type. */
|
||||
irel->r_info
|
||||
= ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
|
||||
irel->r_info =
|
||||
ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
|
||||
R_MN10300_24);
|
||||
|
||||
/* Delete one byte of data. */
|
||||
|
@ -2046,7 +2042,6 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue