[PATCH] Hopefully fix sparc32 (non-v9) build
Jakub Jelinek
jakub@redhat.com
Thu Feb 19 00:21:00 GMT 2004
Hi!
Tom, can you please try the following patch?
My debugging revealed that .bss was made SEC_LOAD because of
.gnu.linkonce.b.__sparc32_atomic_locks section was not marked SHT_NOBITS
as it should (due to the braindamaged Sun .section directive variant
which doesn't have @nobits).
2004-02-19 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
for .gnu.linkonce.b.__sparc32_atomic_locks section.
(__sparc32_atomic_locks): Add __sec_comment at the end of section name.
--- libc/sysdeps/sparc/sparc32/bits/atomic.h.jj 2003-08-15 14:39:00.000000000 +0200
+++ libc/sysdeps/sparc/sparc32/bits/atomic.h 2004-02-19 02:16:37.901274552 +0100
@@ -1,5 +1,5 @@
/* Atomic operations. sparc32 version.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -26,8 +26,12 @@
per library and assumes no variable will be accessed using atomic.h
macros from two different libraries. */
+__make_section_unallocated
+ (".gnu.linkonce.b.__sparc32_atomic_locks, \"aw\", %nobits");
+
volatile unsigned char __sparc32_atomic_locks[64]
- __attribute__ ((nocommon, section (".gnu.linkonce.b.__sparc32_atomic_locks"),
+ __attribute__ ((nocommon, section (".gnu.linkonce.b.__sparc32_atomic_locks"
+ __sec_comment),
visibility ("hidden")));
#define __sparc32_atomic_do_lock(addr) \
Jakub
More information about the Libc-hacker
mailing list