# This shell script emits a C file. -*- C -*-
-# Copyright 2006, 2007, 2008, 2009
-# Free Software Foundation, Inc.
+# Copyright (C) 2006-2014 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
gld${EMULATION_NAME}_before_allocation ();
/* We only need stubs for avr6, avrxmega6, and avrxmega7. */
- if (strcmp ("${EMULATION_NAME}","avr6")
+ if (strcmp ("${EMULATION_NAME}","avr6")
&& strcmp ("${EMULATION_NAME}","avrxmega6")
&& strcmp ("${EMULATION_NAME}","avrxmega7") )
avr_no_stubs = TRUE;
{
/* If relaxing, elf32_avr_size_stubs will be called from
elf32_avr_relax_section. */
- if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, FALSE))
+ if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, TRUE))
einfo ("%X%P: can not size stub section: %E\n");
}
}
}
+static void
+avr_elf_before_parse (void)
+{
+ /* Don't create a demand-paged executable, since this feature isn't
+ meaningful in AVR. */
+ config.magic_demand_paged = FALSE;
+
+ gld${EMULATION_NAME}_before_parse ();
+}
EOF
#
# Put these extra avr-elf routines in ld_${EMULATION_NAME}_emulation
#
+LDEMUL_BEFORE_PARSE=avr_elf_before_parse
LDEMUL_BEFORE_ALLOCATION=avr_elf_${EMULATION_NAME}_before_allocation
LDEMUL_AFTER_ALLOCATION=avr_elf_after_allocation
LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=avr_elf_create_output_section_statements