diff options
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/scripttempl/mmo.sc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ac418d1..24cf64c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2010-08-31 Alan Modra <amodra@gmail.com> + + * scripttempl/mmo.sc: Move assignment to "Main" inside .text + output section statement. + 2010-08-25 H.J. Lu <hongjiu.lu@intel.com> PR ld/11946 diff --git a/ld/scripttempl/mmo.sc b/ld/scripttempl/mmo.sc index 3380884..a70b312 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) } |