# This shell script emits a C file. -*- C -*-
-# Copyright (C) 2013-2020 Free Software Foundation, Inc.
+# Copyright (C) 2013-2021 Free Software Foundation, Inc.
#
# This file is part of GNU Binutils.
#
#include "elf32-csky.h"
/* To use branch stub or not. */
-extern bfd_boolean use_branch_stub;
+extern bool use_branch_stub;
/* Fake input file for stubs. */
static lang_input_statement_type *stub_file;
};
/* Traverse the linker tree to find the spot where the stub goes. */
-static bfd_boolean
+static bool
hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
{
lang_statement_union_type *l;
- bfd_boolean ret;
+ bool ret;
for (l = *lp; l != NULL; lp = &l->header.next, l = *lp)
switch (l->header.type)
after its associated input section. */
*(info->add.tail) = l->header.next;
l->header.next = info->add.head;
- return TRUE;
+ return true;
}
break;
break;
}
- return FALSE;
+ return false;
}
EOF
static void
csky_elf_before_parse (void)
{
- use_branch_stub = FALSE;
+ use_branch_stub = false;
gld${EMULATION_NAME}_before_parse ();
}
EOF
{
if (!(bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
&& elf_object_id (link_info.output_bfd) == CSKY_ELF_DATA))
- use_branch_stub = FALSE;
+ use_branch_stub = false;
/* If don't use branch stub, just do not emit stub_file. */
if (!use_branch_stub)
info.input_section = input_section;
lang_list_init (&info.add);
- lang_add_section (&info.add, stub_sec, NULL, os);
+ lang_add_section (&info.add, stub_sec, NULL, NULL, os);
if (info.add.head == NULL)
goto err_ret;
/* If we have changed sizes of the stub sections, then we need
to recalculate all the section offsets. This may mean we need to
add even more stubs. */
- ldelf_map_segments (TRUE);
+ ldelf_map_segments (true);
need_laying_out = -1;
}
PARSE_AND_LIST_ARGS_CASES='
case OPTION_BRANCH_STUB:
- use_branch_stub = TRUE;
+ use_branch_stub = true;
break;
case OPTION_NO_BRANCH_STUB:
- use_branch_stub = FALSE;
+ use_branch_stub = false;
break;
case OPTION_STUBGROUP_SIZE: