[PATCH]: Set __data_start on Sparc
David S. Miller
davem@davemloft.net
Sun Apr 17 21:40:00 GMT 2005
While fixing a bug in boehm-gc on sparc64-*-linux I noticed we
were not setting __data_start on Sparc like other platforms do.
This patch corrects that.
Please apply, thanks.
2005-04-17 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
--- sysdeps/sparc/sparc32/elf/start.S 16 Aug 2004 04:50:51 -0000 1.7
+++ sysdeps/sparc/sparc32/elf/start.S 17 Apr 2005 21:14:45 -0000
@@ -92,3 +92,9 @@ _start:
unimp
.size _start, .-_start
+
+/* Define a symbol for the first piece of initialized data. */
+ .data
+ .globl __data_start
+__data_start:
+weak_alias (__data_start, data_start)
--- sysdeps/sparc/sparc64/elf/start.S 16 Aug 2004 04:51:01 -0000 1.7
+++ sysdeps/sparc/sparc64/elf/start.S 17 Apr 2005 21:14:45 -0000
@@ -93,3 +93,9 @@ _start:
illtrap 0
.size _start, .-_start
+
+/* Define a symbol for the first piece of initialized data. */
+ .data
+ .globl __data_start
+__data_start:
+weak_alias (__data_start, data_start)
More information about the Libc-alpha
mailing list