diff -rc libglib.0.1.0.orig/Makefile libglib.0.1.0/Makefile *** libglib.0.1.0.orig/Makefile Tue Jun 17 14:48:50 1997 --- libglib.0.1.0/Makefile Thu Oct 28 16:31:24 1999 *************** *** 1,12 **** TARGETFLAGS = DEFINES = CC = $(TOOLDIR)/m68k-palmos-coff-gcc AR = $(TOOLDIR)/m68k-palmos-coff-ar -cur RANLIB = $(TOOLDIR)/m68k-palmos-coff-ranlib NM = $(TOOLDIR)/m68k-palmos-coff-nm INCLUDES = -I../$(LIBCDIR)/include \ ! -I../PalmOS1 -I../PalmOS1/UI -I../PalmOS1/System -I../PalmOS1/Hardware CFLAGS = -O2 -g -fno-builtin $(TARGETFLAGS) $(DEFINES) $(INCLUDES) --- 1,14 ---- TARGETFLAGS = DEFINES = + TOOLDIR=/usr/local/pilot/bin + INCDIR=/usr/local/pilot/m68k-palmos-coff/include CC = $(TOOLDIR)/m68k-palmos-coff-gcc AR = $(TOOLDIR)/m68k-palmos-coff-ar -cur RANLIB = $(TOOLDIR)/m68k-palmos-coff-ranlib NM = $(TOOLDIR)/m68k-palmos-coff-nm INCLUDES = -I../$(LIBCDIR)/include \ ! -I$(INCDIR)/PalmOS1 -I$(INCDIR)/PalmOS1/UI -I$(INCDIR)/PalmOS1/System -I$(INCDIR)/PalmOS1/Hardware CFLAGS = -O2 -g -fno-builtin $(TARGETFLAGS) $(DEFINES) $(INCLUDES) diff -rc libglib.0.1.0.orig/crt0.c libglib.0.1.0/crt0.c *** libglib.0.1.0.orig/crt0.c Sat Jun 14 08:25:36 1997 --- libglib.0.1.0/crt0.c Thu Oct 28 22:47:25 1999 *************** *** 138,145 **** unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea bhook_start(%%pc),%0" : "=a" (hookptr) :); ! asm ("lea bhook_end(%%pc),%0" : "=a" (hookend) :); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; --- 138,145 ---- unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_start-1b),%0" : "=a" (hookptr) : ); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_end-1b),%0" : "=a" (hookend) : ); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; *************** *** 153,160 **** unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea ehook_start(%%pc),%0" : "=a" (hookstart) :); ! asm ("lea ehook_end(%%pc),%0" : "=a" (hookptr) :); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text; --- 153,160 ---- unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_start-1b),%0" : "=a" (hookstart):); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_end-1b),%0" : "=a" (hookptr):); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text; diff -rc libglib.0.1.0.orig/gcrt0.c libglib.0.1.0/gcrt0.c *** libglib.0.1.0.orig/gcrt0.c Sat Jun 28 01:59:32 1997 --- libglib.0.1.0/gcrt0.c Thu Oct 28 22:44:26 1999 *************** *** 150,157 **** unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea bhook_start(%%pc),%0" : "=a" (hookptr) :); ! asm ("lea bhook_end(%%pc),%0" : "=a" (hookend) :); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; --- 150,157 ---- unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_start-1b),%0" : "=a" (hookptr) : ); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_end-1b),%0" : "=a" (hookend) : ); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; *************** *** 163,173 **** do_ehook(Word cmd, Ptr PBP, Word flags) { void **hookstart, **hookptr; unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea ehook_start(%%pc),%0" : "=a" (hookstart) :); ! asm ("lea ehook_end(%%pc),%0" : "=a" (hookptr) :); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text; --- 163,175 ---- do_ehook(Word cmd, Ptr PBP, Word flags) { void **hookstart, **hookptr; + long ofs; unsigned long text = (unsigned long)&start; + asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_start-1b),%0" : "=a" (hookstart):); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_end-1b),%0" : "=a" (hookptr):); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text; diff -rc libglib.0.1.0.orig/scrt0.c libglib.0.1.0/scrt0.c *** libglib.0.1.0.orig/scrt0.c Sat Jun 28 10:07:45 1997 --- libglib.0.1.0/scrt0.c Thu Oct 28 22:47:58 1999 *************** *** 355,362 **** unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea bhook_start(%%pc),%0" : "=a" (hookptr) :); ! asm ("lea bhook_end(%%pc),%0" : "=a" (hookend) :); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; --- 355,362 ---- unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_start-1b),%0" : "=a" (hookptr) : ); ! asm ("1: lea 1b(%%pc),%0; add.l #(bhook_end-1b),%0" : "=a" (hookend) : ); while (hookptr < hookend) { void (*fptr)(Word,Ptr,Word) = (*(hookptr++)) + text; *************** *** 370,377 **** unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("lea ehook_start(%%pc),%0" : "=a" (hookstart) :); ! asm ("lea ehook_end(%%pc),%0" : "=a" (hookptr) :); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text; --- 370,377 ---- unsigned long text = (unsigned long)&start; asm ("sub.l #start, %0" : "=g" (text) : "0" (text)); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_start-1b),%0" : "=a" (hookstart):); ! asm ("1: lea 1b(%%pc),%0; add.l #(ehook_end-1b),%0" : "=a" (hookptr):); while (hookptr > hookstart) { void (*fptr)(Word,Ptr,Word) = (*(--hookptr)) + text;