This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch ld]: Fix for PR 14326 - Cannot link to etext symbol in scripttempl/pe.sc


Hi,

This patch adds symbol '_etext' to pe.sc's linker script, so that the
variable 'etext' can be accessed from C/C++.

2012-08-15  Kai Tietz

        PR ld/14326
        * scripttempl/pe.sc: Add _etext symbol.

Ok for apply?

Regards,
Kai

Index: scripttempl/pe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/pe.sc,v
retrieving revision 1.30
diff -u -r1.30 pe.sc
--- scripttempl/pe.sc   7 Aug 2012 13:47:17 -0000       1.30
+++ scripttempl/pe.sc   15 Aug 2012 20:10:37 -0000
@@ -86,6 +86,7 @@
     /* ??? Why is .gcc_exc here?  */
     ${RELOCATING+ *(.gcc_exc)}
     ${RELOCATING+PROVIDE (etext = .);}
+    ${RELOCATING+PROVIDE (_etext = .);}
     ${RELOCATING+ *(.gcc_except_table)}
   }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]