This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] Fix glibc cvs on sparc32 (_dl_hwcap error)


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


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