From: Alan Modra Date: Tue, 31 Aug 2010 05:11:29 +0000 (+0000) Subject: * scripttempl/mmo.sc: Move assignment to "Main" inside .text X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=6be999b8666bacc82acfef7c911f9c5b4636f6f2;p=deliverable%2Fbinutils-gdb.git * scripttempl/mmo.sc: Move assignment to "Main" inside .text output section statement. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index ac418d19c7..24cf64cd5d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2010-08-31 Alan Modra + + * scripttempl/mmo.sc: Move assignment to "Main" inside .text + output section statement. + 2010-08-25 H.J. Lu PR ld/11946 diff --git a/ld/scripttempl/mmo.sc b/ld/scripttempl/mmo.sc index 33808846ac..a70b312d0d 100644 --- a/ld/scripttempl/mmo.sc +++ b/ld/scripttempl/mmo.sc @@ -60,8 +60,8 @@ SECTIONS ${RELOCATING+ PROVIDE(etext = .);} ${RELOCATING+ PROVIDE(_etext = .);} ${RELOCATING+ PROVIDE(__etext = .);} + ${RELOCATING+Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : ADDR (.text));} } - ${RELOCATING+Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : ADDR (.text));} .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) }