projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR27719, lang_mark_undefineds trashes memory
[binutils-gdb.git]
/
ld
/
emultempl
/
cskyelf.em
diff --git
a/ld/emultempl/cskyelf.em
b/ld/emultempl/cskyelf.em
index f8f80662617851316a281be06ebe4d1d657aaa10..ff3c2f41f390ff8396fe1b1714b28c5b344e7e45 100644
(file)
--- a/
ld/emultempl/cskyelf.em
+++ b/
ld/emultempl/cskyelf.em
@@
-1,5
+1,5
@@
# This shell script emits a C file. -*- C -*-
# This shell script emits a C file. -*- C -*-
-# Copyright (C) 2013-202
0
Free Software Foundation, Inc.
+# Copyright (C) 2013-202
1
Free Software Foundation, Inc.
#
# This file is part of GNU Binutils.
#
#
# This file is part of GNU Binutils.
#
@@
-28,7
+28,7
@@
fragment <<EOF
#include "elf32-csky.h"
/* To use branch stub or not. */
#include "elf32-csky.h"
/* To use branch stub or not. */
-extern b
fd_boolean
use_branch_stub;
+extern b
ool
use_branch_stub;
/* Fake input file for stubs. */
static lang_input_statement_type *stub_file;
/* Fake input file for stubs. */
static lang_input_statement_type *stub_file;
@@
-48,11
+48,11
@@
struct hook_stub_info
};
/* Traverse the linker tree to find the spot where the stub goes. */
};
/* Traverse the linker tree to find the spot where the stub goes. */
-static b
fd_boolean
+static b
ool
hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
{
lang_statement_union_type *l;
hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
{
lang_statement_union_type *l;
- b
fd_boolean
ret;
+ b
ool
ret;
for (l = *lp; l != NULL; lp = &l->header.next, l = *lp)
switch (l->header.type)
for (l = *lp; l != NULL; lp = &l->header.next, l = *lp)
switch (l->header.type)
@@
-89,7
+89,7
@@
hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
after its associated input section. */
*(info->add.tail) = l->header.next;
l->header.next = info->add.head;
after its associated input section. */
*(info->add.tail) = l->header.next;
l->header.next = info->add.head;
- return
TRUE
;
+ return
true
;
}
break;
}
break;
@@
-110,7
+110,7
@@
hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
break;
}
break;
}
- return
FALSE
;
+ return
false
;
}
EOF
}
EOF
@@
-121,7
+121,7
@@
fragment <<EOF
static void
csky_elf_before_parse (void)
{
static void
csky_elf_before_parse (void)
{
- use_branch_stub =
FALSE
;
+ use_branch_stub =
false
;
gld${EMULATION_NAME}_before_parse ();
}
EOF
gld${EMULATION_NAME}_before_parse ();
}
EOF
@@
-137,7
+137,7
@@
csky_elf_create_output_section_statements (void)
{
if (!(bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
&& elf_object_id (link_info.output_bfd) == CSKY_ELF_DATA))
{
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)
/* If don't use branch stub, just do not emit stub_file. */
if (!use_branch_stub)
@@
-189,7
+189,7
@@
elf32_csky_add_stub_section (const char *stub_sec_name,
info.input_section = input_section;
lang_list_init (&info.add);
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 (info.add.head == NULL)
goto err_ret;
@@
-209,7
+209,7
@@
gldcsky_layout_sections_again (void)
/* 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. */
/* 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;
}
need_laying_out = -1;
}
@@
-312,10
+312,10
@@
PARSE_AND_LIST_OPTIONS='
PARSE_AND_LIST_ARGS_CASES='
case OPTION_BRANCH_STUB:
PARSE_AND_LIST_ARGS_CASES='
case OPTION_BRANCH_STUB:
- use_branch_stub =
TRUE
;
+ use_branch_stub =
true
;
break;
case OPTION_NO_BRANCH_STUB:
break;
case OPTION_NO_BRANCH_STUB:
- use_branch_stub =
FALSE
;
+ use_branch_stub =
false
;
break;
case OPTION_STUBGROUP_SIZE:
break;
case OPTION_STUBGROUP_SIZE: