aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-02-05 22:38:34 +0000
committerAlan Modra <amodra@gmail.com>2013-02-05 22:38:34 +0000
commit4d4ef6fd751ccdf80dbb1f7254113349cfd9b5ce (patch)
tree4f3458011cb46970003a392cc7bcb289398fd40c /ld/emultempl
parenteeaa4577b615ac4de9de9a76eec630de1566eb33 (diff)
downloadgdb-4d4ef6fd751ccdf80dbb1f7254113349cfd9b5ce.zip
gdb-4d4ef6fd751ccdf80dbb1f7254113349cfd9b5ce.tar.gz
gdb-4d4ef6fd751ccdf80dbb1f7254113349cfd9b5ce.tar.bz2
* emultempl/avrelf.em (avr_elf_before_parse): New function.
(LDEMUL_BEFORE_PARSE): Define.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/avrelf.em10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emultempl/avrelf.em b/ld/emultempl/avrelf.em
index e0d6357..90894a1 100644
--- a/ld/emultempl/avrelf.em
+++ b/ld/emultempl/avrelf.em
@@ -166,6 +166,15 @@ avr_elf_after_allocation (void)
}
}
+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
@@ -262,6 +271,7 @@ PARSE_AND_LIST_ARGS_CASES='
#
# 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