[PATCH] Re: -Ttext and phdr_in_segment

Senthil Kumar Selvaraj senthil_kumar.selvaraj@atmel.com
Wed Jan 30 06:25:00 GMT 2013


On Tue, Jan 29, 2013 at 07:49:54PM +0100, Andreas Schwab wrote:
> Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> writes:
> 
> > +  /* Don't create a demand-paged executable, since this feature isn't
> > +     meaninful in AVR. */
> 
> s/meaninful/meaningful/
> 

Oops. Corrected the typo in the patch. Could someone please commit?

Regards
Senthil

2013-01-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* ld/emultempl/avrelf.em: Add avr_elf_before_parse and disable
	demand paging


diff --git ld/emultempl/avrelf.em ld/emultempl/avrelf.em
index e0d6357..7f7dcf0 100644
--- ld/emultempl/avrelf.em
+++ 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



More information about the Binutils mailing list