This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 10/13] Move sysdeps/sparc/{,sparc32,sparc64}/elf files
On 03/23/2012 08:40 PM, David Miller wrote:
From: Andreas Jaeger<aj@suse.de>
Date: Fri, 23 Mar 2012 17:37:30 +0100
diff --git a/sysdeps/sparc/sparc64/Makefile b/sysdeps/sparc/sparc64/Makefile
index 2b7b830..8f8a36d 100644
--- a/sysdeps/sparc/sparc64/Makefile
+++ b/sysdeps/sparc/sparc64/Makefile
@@ -15,3 +15,6 @@ ASFLAGS-.og += -Wa,-Av9d
ASFLAGS-.ob += -Wa,-Av9d
ASFLAGS-.oS += -Wa,-Av9d
endif
+
+# The assembler on SPARC needs the -fPIC flag even when it's assembler code.
+ASFLAGS-.os = -fPIC
This new assignment clobbers the carefully set values made
above.
It's not entirely new - it comes from sysdeps/sparc/sparc64/elf/Makefile
- so it should only apply to start.S.
So, would this be correct?
ASFLAGS-start.os = -fPIC
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126