cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and

GCC 4.5 complains about values not in the enum as part of a switch block.
This commit is contained in:
mrg 2011-07-06 09:01:35 +00:00
parent 2f4b41bf98
commit 55bcf9d074
2 changed files with 4 additions and 2 deletions

View File

@ -3352,7 +3352,8 @@ ppc_elf_check_relocs (bfd *abfd,
}
r_type = ELF32_R_TYPE (rel->r_info);
switch (r_type)
/* Cast to int as the fake relocs are not in enum elf_ppc_reloc_type. */
switch ((int)r_type)
{
case R_PPC_GOT_TLSLD16:
case R_PPC_GOT_TLSLD16_LO:

View File

@ -5842,7 +5842,8 @@ ppc_elf_relocate_section (bfd *output_bfd,
howto = NULL;
if (r_type < R_PPC_max)
howto = ppc_elf_howto_table[r_type];
switch (r_type)
/* Cast to int as the fake relocs are not in enum elf_ppc_reloc_type. */
switch ((int)r_type)
{
default:
(*_bfd_error_handler)