From 92b93329b58c744ea269b50f6278ed99416941a9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 19 Jul 2007 19:56:10 +0000 Subject: 2007-07-19 Roland McGrath * genscripts.sh (source_em, fragment): New sh functions. Truncate e${EMULATION_NAME}.c file before .em script fills it. Use source_em in place of . for the .em script. * emultempl/generic.em: Use fragment and source_em functions. * emultempl/aix.em: Likewise. * emultempl/alphaelf.em: Likewise. * emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/cr16elf.em: Likewise. * emultempl/crxelf.em: Likewise. * emultempl/elf-generic.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/genelf.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/ia64elf.em: Likewise. * emultempl/irix.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68hc1xelf.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/m68kelf.em: Likewise. * emultempl/mipsecoff.em: Likewise. * emultempl/mipself.em: Likewise. * emultempl/mmix-elfnmmo.em: Likewise. * emultempl/mmixelf.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/needrelax.em: Likewise. * emultempl/netbsd.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/scoreelf.em: Likewise. * emultempl/sh64elf.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/vxworks.em: Likewise. * emultempl/xtensaelf.em: Likewise. * emultempl/z80.em: Likewise. --- ld/emultempl/avrelf.em | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ld/emultempl/avrelf.em') diff --git a/ld/emultempl/avrelf.em b/ld/emultempl/avrelf.em index 9f24f18..2f17ec9 100644 --- a/ld/emultempl/avrelf.em +++ b/ld/emultempl/avrelf.em @@ -25,12 +25,12 @@ # of devices where one needs to address the issue that it is not possible # to reach the whole program memory by using 16 bit pointers. -cat >>e${EMULATION_NAME}.c <the_bfd, avr_stub_section, flags)) goto err_ret; avr_stub_section->alignment_power = 1; - + ldlang_add_file (stub_file); return; @@ -147,7 +147,7 @@ avr_elf_create_output_section_statements (void) static void avr_elf_finish (void) -{ +{ if (!avr_no_stubs) { /* Now build the linker stubs. */ @@ -185,15 +185,15 @@ PARSE_AND_LIST_PROLOGUE=' ' PARSE_AND_LIST_LONGOPTS=' - { "no-call-ret-replacement", no_argument, + { "no-call-ret-replacement", no_argument, NULL, OPTION_NO_CALL_RET_REPLACEMENT}, - { "pmem-wrap-around", required_argument, + { "pmem-wrap-around", required_argument, NULL, OPTION_PMEM_WRAP_AROUND}, - { "no-stubs", no_argument, + { "no-stubs", no_argument, NULL, OPTION_NO_STUBS}, - { "debug-stubs", no_argument, + { "debug-stubs", no_argument, NULL, OPTION_DEBUG_STUBS}, - { "debug-relax", no_argument, + { "debug-relax", no_argument, NULL, OPTION_DEBUG_RELAX}, ' @@ -227,7 +227,7 @@ PARSE_AND_LIST_OPTIONS=' PARSE_AND_LIST_ARGS_CASES=' case OPTION_PMEM_WRAP_AROUND: - { + { /* This variable is defined in the bfd library. */ if ((!strcmp (optarg,"32k")) || (!strcmp (optarg,"32K"))) avr_pc_wrap_around = 32768; -- cgit v1.1