* elf64-mips.c (UNUSED_RELOC): Define.
(mips_elf64_howto_table_rel): Use it. (mips_elf64_howto_table_rela): Here too. (mips_elf64_write_relocs): Fix signed/unsigned warning.
This commit is contained in:
parent
52b9d21349
commit
5e57284986
|
@ -1,5 +1,10 @@
|
||||||
2001-08-17 Alan Modra <amodra@bigpond.net.au>
|
2001-08-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-mips.c (UNUSED_RELOC): Define.
|
||||||
|
(mips_elf64_howto_table_rel): Use it.
|
||||||
|
(mips_elf64_howto_table_rela): Here too.
|
||||||
|
(mips_elf64_write_relocs): Fix signed/unsigned warning.
|
||||||
|
|
||||||
* coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
|
* coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
|
||||||
silence warning.
|
silence warning.
|
||||||
* coffgen.c (coff_print_symbol): Fix warnings.
|
* coffgen.c (coff_print_symbol): Fix warnings.
|
||||||
|
|
|
@ -90,6 +90,8 @@ static boolean mips_elf64_write_armap
|
||||||
|
|
||||||
/* The relocation table used for SHT_REL sections. */
|
/* The relocation table used for SHT_REL sections. */
|
||||||
|
|
||||||
|
#define UNUSED_RELOC(num) { num, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
|
||||||
|
|
||||||
static reloc_howto_type mips_elf64_howto_table_rel[] =
|
static reloc_howto_type mips_elf64_howto_table_rel[] =
|
||||||
{
|
{
|
||||||
/* No relocation. */
|
/* No relocation. */
|
||||||
|
@ -291,9 +293,9 @@ static reloc_howto_type mips_elf64_howto_table_rel[] =
|
||||||
0xffffffff, /* dst_mask */
|
0xffffffff, /* dst_mask */
|
||||||
false), /* pcrel_offset */
|
false), /* pcrel_offset */
|
||||||
|
|
||||||
{ 13 },
|
UNUSED_RELOC (13),
|
||||||
{ 14 },
|
UNUSED_RELOC (14),
|
||||||
{ 15 },
|
UNUSED_RELOC (15),
|
||||||
|
|
||||||
/* A 5 bit shift field. */
|
/* A 5 bit shift field. */
|
||||||
HOWTO (R_MIPS_SHIFT5, /* type */
|
HOWTO (R_MIPS_SHIFT5, /* type */
|
||||||
|
@ -845,9 +847,9 @@ static reloc_howto_type mips_elf64_howto_table_rela[] =
|
||||||
0xffffffff, /* dst_mask */
|
0xffffffff, /* dst_mask */
|
||||||
false), /* pcrel_offset */
|
false), /* pcrel_offset */
|
||||||
|
|
||||||
{ 13 },
|
UNUSED_RELOC (13),
|
||||||
{ 14 },
|
UNUSED_RELOC (14),
|
||||||
{ 15 },
|
UNUSED_RELOC (15),
|
||||||
|
|
||||||
/* A 5 bit shift field. */
|
/* A 5 bit shift field. */
|
||||||
HOWTO (R_MIPS_SHIFT5, /* type */
|
HOWTO (R_MIPS_SHIFT5, /* type */
|
||||||
|
@ -1813,7 +1815,7 @@ mips_elf64_write_relocs (abfd, sec, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
BFD_ASSERT (ext_rela - (Elf64_Mips_External_Rela *) rela_hdr->contents
|
BFD_ASSERT (ext_rela - (Elf64_Mips_External_Rela *) rela_hdr->contents
|
||||||
== count);
|
== (int) count);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Irix 6 defines a brand new archive map format, so that they can
|
/* Irix 6 defines a brand new archive map format, so that they can
|
||||||
|
|
Loading…
Reference in New Issue