# This shell script emits a C file. -*- C -*-
-# Copyright (C) 2006-2019 Free Software Foundation, Inc.
+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# MA 02110-1301, USA.
#
-# This file is sourced from elf32.em, and defines extra spu specific
+# This file is sourced from elf.em, and defines extra spu specific
# features.
#
fragment <<EOF
os = lang_output_section_find (output_name);
if (os == NULL)
{
- os = gld${EMULATION_NAME}_place_orphan (s, output_name, 0);
+ os = ldelf_place_orphan (s, output_name, 0);
os->addr_tree = NULL;
}
else if (params.ovly_flavour != ovly_soft_icache
}
/* Ensure alignment of overlay sections is sufficient. */
- for (os = &lang_os_list.head->output_section_statement;
+ for (os = (void *) lang_os_list.head;
os != NULL;
os = os->next)
if (os->bfd_section != NULL
memcpy (argv, my_argv, my_argc * sizeof (*argv));
argv[my_argc++] = "--no-auto-overlay";
- if (tmp_file_list->name == auto_overlay_file)
+ if (tmp_file_list != NULL && tmp_file_list->name == auto_overlay_file)
argv[my_argc - 1] = concat (argv[my_argc - 1], "=",
auto_overlay_file, (const char *) NULL);
argv[my_argc++] = "-T";
return FALSE;
/* Use the filename as the symbol marking the program handle struct. */
- sym = base_name (entry->the_bfd->filename);
+ sym = base_name (bfd_get_filename (entry->the_bfd));
handle = xstrdup (sym);
for (p = handle; *p; ++p)
return FALSE;
close (fd);
- for (search = &input_file_chain.head->input_statement;
+ for (search = (void *) input_file_chain.head;
search != NULL;
search = search->next_real_file)
if (search->filename != NULL)
cmd[0] = EMBEDSPU;
cmd[1] = flags;
cmd[2] = handle;
- cmd[3] = entry->the_bfd->filename;
+ cmd[3] = bfd_get_filename (entry->the_bfd);
cmd[4] = oname;
cmd[5] = NULL;
if (verbose)