aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-12 07:35:20 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-12 07:35:20 +0000
commite049a0de5aa29277c6e42046a9fc960cce1ff6ed (patch)
treef864ee52079ac788bb502a42e361f8794a51aa13 /bfd/elf32-mips.c
parent5d341b0e2a8e31c93bc32ce3d4ed447fcfb34c6f (diff)
downloadgdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.zip
gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.gz
gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.bz2
* Many files: Changes to avoid gcc warnings: Remove unused local
variables. Add default case to enum switches. * coff-arm.c (bfd_arm_allocate_interworking_sections): Only compile if not COFF_IMAGE_WITH_PE. (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise. (bfd_arm_get_bfd_for_interworking): Likewise. (bfd_arm_process_before_allocation): Likewise. * epoc-pei-arm.c: Don't rename bfd_arm functions. * pei-arm.c: Likewise. * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare. (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change. (mips_elf_got16_entry): Put parens around & in body of ==. (mips_elf_calculate_relocation): Correct test for empty string. * vms-gsd.c: Use _bfd_error_handler rather than fprintf to stderr. * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf format.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 99833b7..0917d83 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -118,8 +118,6 @@ static boolean mips_elf_is_local_label_name
PARAMS ((bfd *, const char *));
static struct bfd_hash_entry *mips_elf_link_hash_newfunc
PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
-static struct bfd_link_hash_table *mips_elf_link_hash_table_create
- PARAMS ((bfd *));
static int gptab_compare PARAMS ((const void *, const void *));
static void mips_elf_relocate_hi16
PARAMS ((bfd *, Elf_Internal_Rela *, Elf_Internal_Rela *, bfd_byte *,
@@ -277,8 +275,8 @@ typedef enum {
#else
#define MIPS_ELF_ADD_DYNAMIC_ENTRY(info, tag, val) \
(ABI_64_P (elf_hash_table (info)->dynobj) \
- : (abort (), false) \
- ? bfd_elf32_add_dynamic_entry (info, tag, val))
+ ? (abort (), false) \
+ : bfd_elf32_add_dynamic_entry (info, tag, val))
#endif
/* The number of local .got entries we reserve. */
@@ -5227,7 +5225,6 @@ mips_elf_got_offset_from_index (dynobj, output_bfd, index)
{
asection *sgot;
bfd_vma gp;
- char *error_message;
sgot = mips_elf_got_section (dynobj);
gp = _bfd_get_gp_value (output_bfd);
@@ -5476,7 +5473,7 @@ mips_elf_got16_entry (abfd, info, value)
entry += MIPS_ELF_GOT_SIZE (abfd))
{
address = MIPS_ELF_GET_WORD (abfd, entry);
- if (address & 0xffff0000 == value)
+ if ((address & 0xffff0000) == value)
{
/* This entry has the right high-order 16 bits. */
index = MIPS_ELF_GOT_SIZE (abfd) * (entry - sgot->contents);
@@ -5748,7 +5745,7 @@ mips_elf_calculate_relocation (abfd,
*namep = bfd_elf_string_from_elf_section (input_bfd,
symtab_hdr->sh_link,
sym->st_name);
- if (*namep = '\0')
+ if (*namep == '\0')
*namep = bfd_section_name (input_bfd, sec);
}
else
@@ -6168,7 +6165,6 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section,
const Elf_Internal_Rela *relend;
bfd_vma addend;
bfd_vma last_hi16_addend;
- boolean next_relocation_for_same_address_p = false;
boolean use_saved_addend_p = false;
boolean last_hi16_addend_valid_p = false;
struct elf_backend_data *bed;
@@ -6179,7 +6175,6 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section,
{
const char *name;
bfd_vma value;
- int result;
reloc_howto_type *howto;
/* Find the relocation howto for this relocation. */
@@ -7630,7 +7625,6 @@ _bfd_mips_elf_size_dynamic_sections (output_bfd, info)
other dynamic symbol. */
{
unsigned int c, i;
- struct mips_got_info *g;
c = 0;
if (elf_hash_table (info)->dynamic_sections_created)