aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/mmo.sc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-08-31 05:11:29 +0000
committerAlan Modra <amodra@gmail.com>2010-08-31 05:11:29 +0000
commit6be999b8666bacc82acfef7c911f9c5b4636f6f2 (patch)
tree0ae42a33e9971ba86ca07c50e2ca615cc68b0def /ld/scripttempl/mmo.sc
parent447394e37035dbed5dbf74bd24c1a324e59bf135 (diff)
downloadgdb-6be999b8666bacc82acfef7c911f9c5b4636f6f2.zip
gdb-6be999b8666bacc82acfef7c911f9c5b4636f6f2.tar.gz
gdb-6be999b8666bacc82acfef7c911f9c5b4636f6f2.tar.bz2
* scripttempl/mmo.sc: Move assignment to "Main" inside .text
output section statement.
Diffstat (limited to 'ld/scripttempl/mmo.sc')
-rw-r--r--ld/scripttempl/mmo.sc2
1 files changed, 1 insertions, 1 deletions
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) }