]> git.pld-linux.org Git - packages/crossavr-binutils.git/blame - 010-disable-demand-paging.patch
- release 2 (x32 rebuild)
[packages/crossavr-binutils.git] / 010-disable-demand-paging.patch
CommitLineData
31ce1ede
JR
1diff --git ld/emultempl/avrelf.em ld/emultempl/avrelf.em
2index e0d6357..7f7dcf0 100644
3--- ld/emultempl/avrelf.em
4+++ ld/emultempl/avrelf.em
5@@ -166,6 +166,15 @@ avr_elf_after_allocation (void)
6 }
7 }
8
9+static void
10+avr_elf_before_parse (void)
11+{
12+ /* Don't create a demand-paged executable, since this feature isn't
13+ meaninful in AVR. */
14+ config.magic_demand_paged = FALSE;
15+
16+ gld${EMULATION_NAME}_before_parse ();
17+}
18
19 EOF
20
21@@ -262,6 +271,7 @@ PARSE_AND_LIST_ARGS_CASES='
22 #
23 # Put these extra avr-elf routines in ld_${EMULATION_NAME}_emulation
24 #
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
This page took 0.069083 seconds and 4 git commands to generate.