This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH]: Set __data_start on Sparc
- From: "David S. Miller" <davem at davemloft dot net>
- To: libc-alpha at sources dot redhat dot com
- Cc: jakub at redhat dot com, drepper at redhat dot com, roland at redhat dot com
- Date: Sun, 17 Apr 2005 14:34:39 -0700
- Subject: [PATCH]: Set __data_start on Sparc
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)