public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch ld]: Fix for PR 14326 - Cannot link to etext symbol in scripttempl/pe.sc
@ 2012-08-15 21:04 Kai Tietz
  2012-08-17 13:54 ` nick clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Tietz @ 2012-08-15 21:04 UTC (permalink / raw)
  To: Binutils; +Cc: Nick Clifton

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)}
   }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch ld]: Fix for PR 14326 - Cannot link to etext symbol in scripttempl/pe.sc
  2012-08-15 21:04 [patch ld]: Fix for PR 14326 - Cannot link to etext symbol in scripttempl/pe.sc Kai Tietz
@ 2012-08-17 13:54 ` nick clifton
  0 siblings, 0 replies; 2+ messages in thread
From: nick clifton @ 2012-08-17 13:54 UTC (permalink / raw)
  To: Kai Tietz; +Cc: Binutils

Hi Kai,

> 2012-08-15  Kai Tietz
>
>          PR ld/14326
>          * scripttempl/pe.sc: Add _etext symbol.

Approved - please apply.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-17 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-15 21:04 [patch ld]: Fix for PR 14326 - Cannot link to etext symbol in scripttempl/pe.sc Kai Tietz
2012-08-17 13:54 ` nick clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).