1 diff --git ld/emultempl/avrelf.em ld/emultempl/avrelf.em
2 index e0d6357..7f7dcf0 100644
3 --- ld/emultempl/avrelf.em
4 +++ ld/emultempl/avrelf.em
5 @@ -166,6 +166,15 @@ avr_elf_after_allocation (void)
10 +avr_elf_before_parse (void)
12 + /* Don't create a demand-paged executable, since this feature isn't
13 + meaninful in AVR. */
14 + config.magic_demand_paged = FALSE;
16 + gld${EMULATION_NAME}_before_parse ();
21 @@ -262,6 +271,7 @@ PARSE_AND_LIST_ARGS_CASES='
23 # Put these extra avr-elf routines in ld_${EMULATION_NAME}_emulation
25 +LDEMUL_BEFORE_PARSE=avr_elf_before_parse
26 LDEMUL_BEFORE_ALLOCATION=avr_elf_${EMULATION_NAME}_before_allocation
27 LDEMUL_AFTER_ALLOCATION=avr_elf_after_allocation
28 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=avr_elf_create_output_section_statements