gdb/23712: Test case for multidictionary
[deliverable/binutils-gdb.git] / ld / emultempl / vanilla.em
index 2e26bd3efa700a791e817130eeb55578888ca3c7..c57950ab6b386f5d2013ea8cad266effe8f69c2c 100644 (file)
@@ -1,9 +1,8 @@
 # This shell script emits a C file. -*- C -*-
 # It does some substitutions.
-cat >e${EMULATION_NAME}.c <<EOF
+fragment <<EOF
 /* A vanilla emulation with no defaults
-   Copyright 1991, 1992, 1994, 2000, 2001, 2002, 2003, 2007
-   Free Software Foundation, Inc.
+   Copyright (C) 1991-2019 Free Software Foundation, Inc.
    Written by Steve Chamberlain steve@cygnus.com
 
    This file is part of the GNU Binutils.
@@ -25,6 +24,7 @@ cat >e${EMULATION_NAME}.c <<EOF
 
 #include "sysdep.h"
 #include "bfd.h"
+#include "bfdlink.h"
 
 #include "ld.h"
 #include "ldmisc.h"
@@ -44,7 +44,8 @@ vanilla_set_output_arch (void)
 {
   /* Set the output architecture and machine if possible */
   unsigned long  machine = 0;
-  bfd_set_arch_mach(output_bfd, ldfile_output_architecture, machine);
+  bfd_set_arch_mach (link_info.output_bfd,
+                    ldfile_output_architecture, machine);
 }
 
 static char *
@@ -61,6 +62,7 @@ struct ld_emulation_xfer_struct ld_vanilla_emulation =
   hll_default,
   after_parse_default,
   after_open_default,
+  after_check_relocs_default,
   after_allocation_default,
   vanilla_set_output_arch,
   ldemul_default_target,
@@ -80,6 +82,7 @@ struct ld_emulation_xfer_struct ld_vanilla_emulation =
   NULL,        /* list options */
   NULL,        /* recognized file */
   NULL,        /* find_potential_libraries */
-  NULL /* new_vers_pattern */
+  NULL,        /* new_vers_pattern */
+  NULL /* extra_map_file_text */
 };
 EOF
This page took 0.023656 seconds and 4 git commands to generate.