#! /bin/sh -e # All lines beginning with `# DP:' are a description of the patch. # DP: Description: # DP: Author: # DP: Upstream status: [In CVS | Debian-Specific | Pending | Not submitted ] # DP: Status Details: # DP: Date: 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. --- /dev/null 2003-01-25 02:37:00.000000000 -0700 +++ glibc-2.3.1/sysdeps/hppa/elf/entry.h 2003-03-27 03:55:34.000000000 -0700 @@ -0,0 +1,10 @@ +#ifndef __ASSEMBLY__ +extern void _start (void); +#endif + +/* The function's entry point is stored in the first word of the + function descriptor (plabel) of _start(). */ +#define ENTRY_POINT ({long int *tmp = (long int *)((long)_start & ~2); tmp[0];}) + +/* We have to provide a special declaration. */ +#define ENTRY_POINT_DECL(class) class void _start (void);