This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH 4/5] alpha: fix link errors due to relocations in ld.so.
From: Aurelien Jarno <aurelien@aurel32.net>
Fixes glibc bug 10201.
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
ChangeLog.alpha | 5 +++++
sysdeps/alpha/Makefile | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index c3bbe12..4952a33 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
2010-05-03 Aurelien Jarno <aurelien@aurel32.net>
+ * sysdeps/alpha/Makefile (CFLAGS-rtld.c): add $(PIC-ccflag).
+ (CFLAGS-dl-close.c): Likewise.
+
+2010-05-03 Aurelien Jarno <aurelien@aurel32.net>
+
* sysdeps/alpha/dl-machine.h: Add dl-procinfo support.
* sysdeps/alpha/dl-procinfo.c: New.
* sysdeps/alpha/dl-procinfo.h: New.
diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile
index 725ae43..0963a15 100644
--- a/sysdeps/alpha/Makefile
+++ b/sysdeps/alpha/Makefile
@@ -36,6 +36,9 @@ endif
ifeq ($(subdir),elf)
# The ld.so startup code cannot use literals until it self-relocates.
CFLAGS-rtld.c = -mbuild-constants
+# It uses more than 64k for the small data area.
+CFLAGS-rtld.c += $(PIC-ccflag)
+CFLAGS-dl-close.c = $(PIC-ccflag)
endif
# Build everything with full IEEE math support, and with dynamic rounding;
--
1.6.4.4