mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 05:20:30 +00:00
* elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
Remove unusued variables. (sparc64_elf_relocate_section): Change r_symndx type to unsigned long. (sparc64_elf_merge_private_bfd_data): Fix shared library case from previous fix, so that shared libs really don't influence targets extension mask and memory model.
This commit is contained in:
parent
fbc75a324a
commit
6c08d69728
@ -1,3 +1,12 @@
|
|||||||
|
2000-05-26 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
|
||||||
|
Remove unusued variables.
|
||||||
|
(sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
|
||||||
|
(sparc64_elf_merge_private_bfd_data): Fix shared library case from
|
||||||
|
previous fix, so that shared libs really don't influence targets
|
||||||
|
extension mask and memory model.
|
||||||
|
|
||||||
2000-05-23 H.J. Lu <hjl@gnu.org>
|
2000-05-23 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf64-alpha.c (elf64_alpha_relocate_section): Check
|
* elf64-alpha.c (elf64_alpha_relocate_section): Check
|
||||||
|
@ -212,7 +212,7 @@ static CONST struct elf_reloc_map sparc_reloc_map[] =
|
|||||||
|
|
||||||
static reloc_howto_type *
|
static reloc_howto_type *
|
||||||
sparc64_elf_reloc_type_lookup (abfd, code)
|
sparc64_elf_reloc_type_lookup (abfd, code)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
bfd_reloc_code_real_type code;
|
bfd_reloc_code_real_type code;
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@ -226,7 +226,7 @@ sparc64_elf_reloc_type_lookup (abfd, code)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sparc64_elf_info_to_howto (abfd, cache_ptr, dst)
|
sparc64_elf_info_to_howto (abfd, cache_ptr, dst)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *cache_ptr;
|
arelent *cache_ptr;
|
||||||
Elf64_Internal_Rela *dst;
|
Elf64_Internal_Rela *dst;
|
||||||
{
|
{
|
||||||
@ -240,7 +240,7 @@ sparc64_elf_info_to_howto (abfd, cache_ptr, dst)
|
|||||||
|
|
||||||
static long
|
static long
|
||||||
sparc64_elf_get_reloc_upper_bound (abfd, sec)
|
sparc64_elf_get_reloc_upper_bound (abfd, sec)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
{
|
{
|
||||||
return (sec->reloc_count * 2 + 1) * sizeof (arelent *);
|
return (sec->reloc_count * 2 + 1) * sizeof (arelent *);
|
||||||
@ -266,7 +266,6 @@ sparc64_elf_slurp_one_reloc_table (abfd, asect, rel_hdr, symbols, dynamic)
|
|||||||
asymbol **symbols;
|
asymbol **symbols;
|
||||||
boolean dynamic;
|
boolean dynamic;
|
||||||
{
|
{
|
||||||
struct elf_backend_data * const ebd = get_elf_backend_data (abfd);
|
|
||||||
PTR allocated = NULL;
|
PTR allocated = NULL;
|
||||||
bfd_byte *native_relocs;
|
bfd_byte *native_relocs;
|
||||||
arelent *relent;
|
arelent *relent;
|
||||||
@ -501,7 +500,6 @@ sparc64_elf_write_relocs (abfd, sec, data)
|
|||||||
for (idx = 0; idx < sec->reloc_count; idx++)
|
for (idx = 0; idx < sec->reloc_count; idx++)
|
||||||
{
|
{
|
||||||
bfd_vma addr;
|
bfd_vma addr;
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
++count;
|
++count;
|
||||||
|
|
||||||
@ -723,13 +721,13 @@ sparc_elf_notsup_reloc (abfd,
|
|||||||
input_section,
|
input_section,
|
||||||
output_bfd,
|
output_bfd,
|
||||||
error_message)
|
error_message)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *reloc_entry;
|
arelent *reloc_entry ATTRIBUTE_UNUSED;
|
||||||
asymbol *symbol;
|
asymbol *symbol ATTRIBUTE_UNUSED;
|
||||||
PTR data;
|
PTR data ATTRIBUTE_UNUSED;
|
||||||
asection *input_section;
|
asection *input_section ATTRIBUTE_UNUSED;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd ATTRIBUTE_UNUSED;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return bfd_reloc_notsupported;
|
return bfd_reloc_notsupported;
|
||||||
}
|
}
|
||||||
@ -745,7 +743,7 @@ sparc_elf_wdisp16_reloc (abfd, reloc_entry, symbol, data, input_section,
|
|||||||
PTR data;
|
PTR data;
|
||||||
asection *input_section;
|
asection *input_section;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
bfd_vma relocation;
|
bfd_vma relocation;
|
||||||
bfd_vma insn;
|
bfd_vma insn;
|
||||||
@ -783,7 +781,7 @@ sparc_elf_hix22_reloc (abfd,
|
|||||||
PTR data;
|
PTR data;
|
||||||
asection *input_section;
|
asection *input_section;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
bfd_vma relocation;
|
bfd_vma relocation;
|
||||||
bfd_vma insn;
|
bfd_vma insn;
|
||||||
@ -820,7 +818,7 @@ sparc_elf_lox10_reloc (abfd,
|
|||||||
PTR data;
|
PTR data;
|
||||||
asection *input_section;
|
asection *input_section;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
bfd_vma relocation;
|
bfd_vma relocation;
|
||||||
bfd_vma insn;
|
bfd_vma insn;
|
||||||
@ -1265,9 +1263,9 @@ sparc64_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
|
|||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
const Elf_Internal_Sym *sym;
|
const Elf_Internal_Sym *sym;
|
||||||
const char **namep;
|
const char **namep;
|
||||||
flagword *flagsp;
|
flagword *flagsp ATTRIBUTE_UNUSED;
|
||||||
asection **secp;
|
asection **secp ATTRIBUTE_UNUSED;
|
||||||
bfd_vma *valp;
|
bfd_vma *valp ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
static char *stt_types[] = { "NOTYPE", "OBJECT", "FUNCTION" };
|
static char *stt_types[] = { "NOTYPE", "OBJECT", "FUNCTION" };
|
||||||
|
|
||||||
@ -1387,7 +1385,7 @@ sparc64_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
|
|||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
sparc64_elf_output_arch_syms (output_bfd, info, finfo, func)
|
sparc64_elf_output_arch_syms (output_bfd, info, finfo, func)
|
||||||
bfd *output_bfd;
|
bfd *output_bfd ATTRIBUTE_UNUSED;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
PTR finfo;
|
PTR finfo;
|
||||||
boolean (*func) PARAMS ((PTR, const char *,
|
boolean (*func) PARAMS ((PTR, const char *,
|
||||||
@ -1460,7 +1458,7 @@ sparc64_elf_get_symbol_type (elf_sym, type)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sparc64_elf_symbol_processing (abfd, asym)
|
sparc64_elf_symbol_processing (abfd, asym)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asymbol *asym;
|
asymbol *asym;
|
||||||
{
|
{
|
||||||
elf_symbol_type *elfsym;
|
elf_symbol_type *elfsym;
|
||||||
@ -1898,7 +1896,7 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
{
|
{
|
||||||
int r_type;
|
int r_type;
|
||||||
reloc_howto_type *howto;
|
reloc_howto_type *howto;
|
||||||
long r_symndx;
|
unsigned long r_symndx;
|
||||||
struct elf_link_hash_entry *h;
|
struct elf_link_hash_entry *h;
|
||||||
Elf_Internal_Sym *sym;
|
Elf_Internal_Sym *sym;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
@ -2809,8 +2807,8 @@ sparc64_elf_merge_private_bfd_data (ibfd, obfd)
|
|||||||
/* We don't want dynamic objects memory ordering and
|
/* We don't want dynamic objects memory ordering and
|
||||||
architecture to have any role. That's what dynamic linker
|
architecture to have any role. That's what dynamic linker
|
||||||
should do. */
|
should do. */
|
||||||
old_flags &= ~(EF_SPARCV9_MM | EF_SPARC_SUN_US1 | EF_SPARC_HAL_R1);
|
new_flags &= ~(EF_SPARCV9_MM | EF_SPARC_SUN_US1 | EF_SPARC_HAL_R1);
|
||||||
old_flags |= (new_flags
|
new_flags |= (old_flags
|
||||||
& (EF_SPARCV9_MM
|
& (EF_SPARCV9_MM
|
||||||
| EF_SPARC_SUN_US1
|
| EF_SPARC_SUN_US1
|
||||||
| EF_SPARC_HAL_R1));
|
| EF_SPARC_HAL_R1));
|
||||||
@ -2863,7 +2861,7 @@ sparc64_elf_merge_private_bfd_data (ibfd, obfd)
|
|||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
sparc64_elf_print_symbol_all (abfd, filep, symbol)
|
sparc64_elf_print_symbol_all (abfd, filep, symbol)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
PTR filep;
|
PTR filep;
|
||||||
asymbol *symbol;
|
asymbol *symbol;
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user