Fix PLT first entry GOT operand calculation.
[deliverable/binutils-gdb.git] / ld / scripttempl / ppcpe.sc
index 40fbe33bb79e99000f3b369fcd242583657274ab..e92e6c71b36b8bf97955c978c76e0c13ac49d80f 100644 (file)
@@ -2,11 +2,25 @@
 # Loosely based on Steve Chamberlain's pe.sc.
 # All new mistakes should be credited to Kim Knuttila (krk@cygnus.com)
 #
+# Copyright (C) 2014-2016 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.
+#
 # These are substituted in as variables in order to get '}' in a shell
 # conditional expansion.
+
 INIT='.init : { *(.init) }'
 FINI='.fini : { *(.fini) }'
+
 cat <<EOF
+/* Copyright (C) 2014-2016 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_FORMAT(${OUTPUT_FORMAT})
 ${LIB_SEARCH_DIRS}
 
@@ -22,7 +36,7 @@ ${LIB_SEARCH_DIRS}
    "-u mainCRTStartup" to make sure it gets included in the link.
 */
 
-ENTRY(mainCRTStartup)
+${RELOCATING+ENTRY (mainCRTStartup)}
 
 SECTIONS
 {
@@ -32,6 +46,7 @@ SECTIONS
        {
            ${RELOCATING+ *(.init);}
            *(.text)
+           ${RELOCATING+ *(.text.*)}
            *(.gcc_except_table)
            ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
                        LONG (-1); *(.ctors); *(.ctor); LONG (0); }
This page took 0.024171 seconds and 4 git commands to generate.