Include .init, .fini, .rodata sections.
authorKen Raeburn <raeburn@cygnus>
Mon, 12 Jul 1993 15:05:38 +0000 (15:05 +0000)
committerKen Raeburn <raeburn@cygnus>
Mon, 12 Jul 1993 15:05:38 +0000 (15:05 +0000)
Create symbol "end" instead of "__end".
Comment out some parts that may not be needed (yet) for elf.

ld/scripttempl/elf.sc

index 0643925..2e75875 100644 (file)
@@ -3,15 +3,19 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
 
 ${RELOCATING+${LIB_SEARCH_DIRS}}
-${RELOCATING+__DYNAMIC  =  0;}
-${STACKZERO+${RELOCATING+${STACKZERO}}}
-${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
+/* Do we need any of these for elf?
+   ${RELOCATING+__DYNAMIC  =  0;}
+   ${STACKZERO+${RELOCATING+${STACKZERO}}}
+   ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}  */
 SECTIONS
 {
   .text ${RELOCATING+${TEXT_START_ADDR}}:
   {
     CREATE_OBJECT_SYMBOLS
+    *(.init)
     *(.text)
+    *(.fini)
+    *(.rodata)
     ${RELOCATING+_etext = ${DATA_ALIGNMENT};}
   }
   .data  ${RELOCATING+${DATA_ALIGNMENT}} :
@@ -26,7 +30,7 @@ SECTIONS
    *(.bss)
    *(COMMON)
    ${RELOCATING+_end = . };
-   ${RELOCATING+__end = . };
+   ${RELOCATING+end = . };
   }
 }
 EOF