This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]: 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)


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