[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch] rtld.c build hack for hppa



This patch hacks around the floating point issues with rtld.c mentioned
earlier on this list. With this patch you can build a working ld.so ....

randolph
--  
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

#! /bin/sh -e

# DP: Description: Hack to make hppa build a workable ld.so 
# DP: Author: Randolph Chung <tausq@debian.org>
# DP: Upstream Status: Not submitted

if [ $# -ne 2 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
esac
exit 0

# append the patch here and adjust the -p? flag in the patch calls.
--- glibc/sysdeps/hppa/Makefile.orig	2002-09-11 20:19:15.000000000 -0700
+++ glibc/sysdeps/hppa/Makefile	2002-09-11 20:19:17.000000000 -0700
@@ -27,6 +27,7 @@
 endif
 
 ifeq ($(subdir),elf)
+CFLAGS-rtld.c += -mdisable-fpregs
 dl-routines += dl-symaddr dl-fptr
 rtld-routines += dl-symaddr dl-fptr
 endif



Reply to: