Don't define _FORTIFY_SOURCE on MinGW
[deliverable/binutils-gdb.git] / ld / scripttempl / aix.sc
index 74fdeeed46fe8750f0ba229098d519bad85a4ad9..5a9d04d64a41f61947e48c93a35ead2a2e152436 100644 (file)
@@ -2,16 +2,30 @@
 # AIX always uses shared libraries.  The section VMA appears to be
 # unimportant.  The native linker aligns the sections on boundaries
 # specified by the -H option.
+#
+# Copyright (C) 2014-2020 Free Software Foundation, Inc.
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+
 cat <<EOF
-OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
+
+   Copying and distribution of this script, with or without modification,
+   are permitted in any medium without royalty provided the copyright
+   notice and this notice are preserved.  */
+
 OUTPUT_ARCH(${ARCH})
 ${RELOCATING+${LIB_SEARCH_DIRS}}
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
 SECTIONS
 {
   .pad 0 : { *(.pad) }
-  ${RELOCATING+PROVIDE (_text = .);}
+
+  . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
   .text ${RELOCATING-0} : {
+    ${RELOCATING+PROVIDE (_text = .);}
     *(.text)
     *(.pr)
     *(.ro)
@@ -20,32 +34,41 @@ SECTIONS
     *(.xo)
     *(.ti)
     *(.tb)
+    ${RELOCATING+PROVIDE (_etext = .);}
   }
-  ${RELOCATING+PROVIDE (_etext = .);}
-  ${RELOCATING+PROVIDE (_data = .);}
-  .data ${RELOCATING-0} : {
+
+  . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
+  .data . : {
+    ${RELOCATING+PROVIDE (_data = .);}
     *(.data)
     *(.rw)
     *(.sv)
+    *(.sv64)
+    *(.sv3264)
     *(.ua)
+    . = ALIGN(4);
+    ${CONSTRUCTING+CONSTRUCTORS}
     *(.ds)
     *(.tc0)
     *(.tc)
     *(.td)
+    ${RELOCATING+PROVIDE (_edata = .);}
   }
-  ${RELOCATING+PROVIDE (_edata = .);}
   .bss : {
+    *(.tocbss)
     *(.bss)
     *(.bs)
     *(.uc)
     *(COMMON)
+    ${RELOCATING+PROVIDE (_end = .);}
+    ${RELOCATING+PROVIDE (end = .);}
   }
-  ${RELOCATING+PROVIDE (_end = .);}
-  ${RELOCATING+PROVIDE (end = .);}
-  .loader 0 : {
+
+  .loader : {
     *(.loader)
   }
-  .debug 0 : {
+
+  .debug : {
     *(.debug)
   }
 }
This page took 0.024461 seconds and 4 git commands to generate.