/* Stop elf32-sh.c from defining any target vectors. */
#define SH_TARGET_ALREADY_DEFINED
-#define sh_find_elf_flags sh_symbian_find_elf_flags
+#define sh_find_elf_flags sh_symbian_find_elf_flags
#define sh_elf_get_flags_from_mach sh_symbian_elf_get_flags_from_mach
#include "elf32-sh.c"
++ s; \
if (s >= e) \
{ \
- if (SYMBIAN_DEBUG) \
+ if (SYMBIAN_DEBUG) \
fprintf (stderr, "Corrupt directive: %s\n", m); \
result = FALSE; \
} \
++ s; \
if (s >= e) \
{ \
- if (SYMBIAN_DEBUG) \
+ if (SYMBIAN_DEBUG) \
fprintf (stderr, "Corrupt directive: %s\n", m); \
result = FALSE; \
} \
++ s; \
if (s >= e) \
{ \
- if (SYMBIAN_DEBUG) \
+ if (SYMBIAN_DEBUG) \
fprintf (stderr, "Corrupt directive: %s\n", m); \
result = FALSE; \
} \
typedef struct symbol_rename
{
struct symbol_rename * next;
- char * current_name;
- char * new_name;
+ char * current_name;
+ char * new_name;
struct elf_link_hash_entry * current_hash;
- unsigned long new_symndx;
+ unsigned long new_symndx;
}
symbol_rename;
and magle the relocs to allow for symbol renaming. */
static bfd_boolean
-sh_symbian_relocate_section (bfd * output_bfd,
+sh_symbian_relocate_section (bfd * output_bfd,
struct bfd_link_info * info,
- bfd * input_bfd,
- asection * input_section,
- bfd_byte * contents,
+ bfd * input_bfd,
+ asection * input_section,
+ bfd_byte * contents,
Elf_Internal_Rela * relocs,
- Elf_Internal_Sym * local_syms,
- asection ** local_sections)
+ Elf_Internal_Sym * local_syms,
+ asection ** local_sections)
{
/* When performing a final link we implement the IMPORT AS directives. */
if (!bfd_link_relocatable (info))
{
- Elf_Internal_Rela * rel;
- Elf_Internal_Rela * relend;
- Elf_Internal_Shdr * symtab_hdr;
+ Elf_Internal_Rela * rel;
+ Elf_Internal_Rela * relend;
+ Elf_Internal_Shdr * symtab_hdr;
struct elf_link_hash_entry ** sym_hashes;
struct elf_link_hash_entry ** sym_hashes_end;
struct elf_link_hash_table * hash_table;
- symbol_rename * ptr;
- bfd_size_type num_global_syms;
+ symbol_rename * ptr;
+ bfd_size_type num_global_syms;
unsigned long num_local_syms;
BFD_ASSERT (! elf_bad_symtab (input_bfd));
rel < relend;
rel ++)
{
- int r_type;
- unsigned long r_symndx;
+ int r_type;
+ unsigned long r_symndx;
struct elf_link_hash_entry * h;
r_symndx = ELF32_R_SYM (rel->r_info);