bfd/
[deliverable/binutils-gdb.git] / ld / scripttempl / ppcpe.sc
index 4452213e99e534ba0e4a6cda6fc0e05c5e1766c2..182fbe5544ec5467fc4561731afaccdca2432a51 100644 (file)
@@ -22,7 +22,7 @@ ${LIB_SEARCH_DIRS}
    "-u mainCRTStartup" to make sure it gets included in the link.
 */
 
-ENTRY(mainCRTStartup)
+${RELOCATING+ENTRY (mainCRTStartup)}
 
 SECTIONS
 {
@@ -32,6 +32,8 @@ SECTIONS
        {
            ${RELOCATING+ *(.init);}
            *(.text)
+           ${RELOCATING+ *(.text.*)}
+           *(.gcc_except_table)
            ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
                        LONG (-1); *(.ctors); *(.ctor); LONG (0); }
             ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; 
@@ -133,6 +135,7 @@ SECTIONS
            *(.idata\$3);
            __idata4_magic__ = .;
            *(.idata\$4);
+           . = ALIGN(4);
            .toc = . + 32768;
            *(.private.toc);
            __idata5_magic__ = .;
@@ -152,17 +155,6 @@ SECTIONS
            ;
        }
 
-  /* We don't do anything useful with codeview debugger support or the
-     directive section (yet). Hopefully, we junk them correctly. 
-  */
-  .junk BLOCK(__section_alignment__) : 
-       {
-           *(.debug\$S)
-           *(.debug\$T)
-           *(.debug\$F)
-           *(.drectve)
-           ;
-       }
 
   /* Resources */
   .rsrc BLOCK(__section_alignment__) :
@@ -172,6 +164,16 @@ SECTIONS
            ;
        }
 
+  .stab BLOCK(__section_alignment__)  ${RELOCATING+(NOLOAD)} : 
+  {
+    [ .stab ]
+  }
+
+  .stabstr BLOCK(__section_alignment__) ${RELOCATING+(NOLOAD)} :
+  {
+    [ .stabstr ]
+  }
+
   /* The .reloc section is currently generated by the dlltool from Steve 
      Chamberlain in a second pass of linking. Section address and extent
      are placed in the DataDirectory.
@@ -182,14 +184,16 @@ SECTIONS
            ;
        }
 
-  .stab BLOCK(__section_alignment__)  ${RELOCATING+(NOLOAD)} : 
+  /* We don't do anything useful with codeview debugger support or the
+     directive section (yet). Hopefully, we junk them correctly. 
+  */
+  /DISCARD/ BLOCK(__section_alignment__) : 
        {
-            [ .stab ]
-       }
-
-  .stabstr BLOCK(__section_alignment__) ${RELOCATING+(NOLOAD)} :
-       {
-            [ .stabstr ]
-       }
+           *(.debug\$S)
+           *(.debug\$T)
+           *(.debug\$F)
+           *(.drectve)
+           ;
+       }
 }
 EOF
This page took 0.025406 seconds and 4 git commands to generate.