return bfd_reloc_ok;
}
+#ifndef OLD_ARM_ABI
case R_ARM_ALU_PCREL7_0:
case R_ARM_ALU_PCREL15_8:
case R_ARM_ALU_PCREL23_15:
bfd_put_32 (input_bfd, value, hit_data);
}
return bfd_reloc_ok;
+#endif
case R_ARM_GNU_VTINHERIT:
case R_ARM_GNU_VTENTRY:
i_ehdrp->e_ident[EI_OSABI] = ARM_ELF_OS_ABI_VERSION;
i_ehdrp->e_ident[EI_ABIVERSION] = ARM_ELF_ABI_VERSION;
- globals = elf32_arm_hash_table (link_info);
- if (globals->byteswap_code)
- i_ehdrp->e_flags |= EF_ARM_BE8;
+ if (link_info)
+ {
+ globals = elf32_arm_hash_table (link_info);
+ if (globals->byteswap_code)
+ i_ehdrp->e_flags |= EF_ARM_BE8;
+ }
}
static enum elf_reloc_type_class
}
ptr = end;
}
- bfd_free (map);
+ free (map);
return FALSE;
}