[PATCH] Fix glibc cvs on sparc32 (_dl_hwcap error)
Jakub Jelinek
jakub@redhat.com
Fri Jul 25 11:12:00 GMT 2003
On Fri, Jul 25, 2003 at 01:07:30PM +0200, Thorsten Kukuk wrote:
> On sparc32 I now get the following error with current glibc cvs:
> /tmp/ccCHIq7h.s:6139: Error: symbol `_dl_hwcap' can not be both weak and common
Does the following fix it?
2003-07-25 Jakub Jelinek <jakub@redhat.com>
* elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
--- libc/elf/dl-support.c.jj 2003-07-23 03:56:17.000000000 -0400
+++ libc/elf/dl-support.c 2003-07-25 07:10:48.000000000 -0400
@@ -123,7 +123,7 @@ int _dl_correct_cache_id = _DL_CACHE_DEF
struct ElfW(Phdr) *_dl_phdr;
size_t _dl_phnum;
-unsigned long int _dl_hwcap;
+unsigned long int _dl_hwcap __attribute__((nocommon));
#ifdef NEED_DL_SYSINFO
/* Needed for improved syscall handling on at least x86/Linux. */
Jakub
More information about the Libc-hacker
mailing list