asection *sec, *pcc_low_sec = NULL, *pcc_high_sec = NULL;
struct elf_aarch64_link_hash_table *htab = elf_aarch64_hash_table (info);
bfd_vma low = (bfd_vma) -1, high = 0;
+ bfd *input_bfd;
htab->layout_sections_again = layout_sections_again;
/* First, walk through all the relocations to find those referring to linker
defined and ldscript defined symbols since we set their range to their
output sections. */
- for (bfd *input_bfd = info->input_bfds;
+ for (input_bfd = info->input_bfds;
htab->c64_rel && input_bfd != NULL; input_bfd = input_bfd->link.next)
{
Elf_Internal_Shdr *symtab_hdr;
BFD_RELOC_MORELLO_CAPINIT);
mapping_state (MAP_DATA);
- for (int i = 0; i < 4; i++)
+ int i;
+ for (i = 0; i < 4; i++)
{
/* The documentation of our md_number_to_chars says the greatest value
size it can handle is 4 bytes. */
bfd_boolean
tc_aarch64_cfi_startproc_exp (const char *arg)
{
- // Allow purecap only for C64 functions.
+ /* Allow purecap only for C64 functions. */
if (!strcmp ("purecap", arg) && IS_C64)
return TRUE;
const aarch64_form *
get_form_from_str (const char *form, size_t len)
{
- for (unsigned i = 1; i < sizeof (aarch64_forms) / sizeof (aarch64_form); i++)
+ unsigned i;
+ for (i = 1; i < sizeof (aarch64_forms) / sizeof (aarch64_form); i++)
if (!strncmp (form, aarch64_forms[i].name, len))
return &aarch64_forms[i];
unsigned flags = 0;
int regno_idx = idx == 0 ? 1 : 0;
enum aarch64_opnd reg_type = opcode->operands[regno_idx];
+ size_t i;
if (reg_type == AARCH64_OPND_Cat)
flags = F_CAPREG;
- for (size_t i = 0; aarch64_sys_regs[i].name; ++i)
+ for (i = 0; aarch64_sys_regs[i].name; ++i)
if (aarch64_sys_regs[i].value == opnd->sysreg.value)
{
part_match = TRUE;