This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Attempts on Solaris 10 SPARC
- From: nick clifton <nickc at redhat dot com>
- To: Amos <a dot goo0h at gmail dot com>, binutils at sourceware dot org
- Date: Thu, 18 Jul 2013 11:58:53 +0100
- Subject: Re: Attempts on Solaris 10 SPARC
- References: <CAK2viQXBxMfPNjqCE-g0YZoeBt4rz7vy9omCGOe6qcqJmCDDUA at mail dot gmail dot com>
Hi Amos,
Trying to compile a more recent binutils on Solaris 10 SPARC
"readelf.c", line 7491: void function cannot return value
This is now fixed (in the mainline development sources).
./../include/elf/common.h:989:1: "AT_SUN_HWCAP" redefined
/usr/include/sys/auxv.h:126:1: this is the location of the previous definition
This is slightly worrying - I would have expected the two definitions to
be the same. Can you tell me how AT_SUN_HWCAP is defined in auxv.h ?
Anything I can do to get past this?
You could always conditionalize the definition of AT_SUN_HWCAP in
common.h in your local sources. Ie:
Cheers
Nick
Index: include/elf/common.h
===================================================================
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.144
diff -u -3 -p -r1.144 common.h
--- include/elf/common.h 22 May 2013 17:02:35 -0000 1.144
+++ include/elf/common.h 18 Jul 2013 11:00:14 -0000
@@ -986,8 +986,10 @@
#define AT_SUN_LDNAME 2006 /* String giving name of dynamic
linker. */
#define AT_SUN_LPAGESZ 2007 /* Large pagesize. */
#define AT_SUN_PLATFORM 2008 /* Platform name string. */
+#ifndef AT_SUN_HWCAP
#define AT_SUN_HWCAP 2009 /* Machine dependent hints about
processor capabilities. */
+#endif
#define AT_SUN_IFLUSH 2010 /* Should flush icache? */
#define AT_SUN_CPU 2011 /* CPU name string. */
#define AT_SUN_EMUL_ENTRY 2012 /* COFF entry point address. */