SOURCES: bc-save_adr.patch (NEW) - fix lib loading (e.g. on x86_64...

baggins baggins at pld-linux.org
Tue Jul 5 16:53:08 CEST 2005


Author: baggins                      Date: Tue Jul  5 14:53:08 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix lib loading (e.g. on x86_64 bc -l give sigsegv)

---- Files affected:
SOURCES:
   bc-save_adr.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/bc-save_adr.patch
diff -u /dev/null SOURCES/bc-save_adr.patch:1.1
--- /dev/null	Tue Jul  5 16:53:08 2005
+++ SOURCES/bc-save_adr.patch	Tue Jul  5 16:53:03 2005
@@ -0,0 +1,14 @@
+--- bc-1.06/bc/load.c.s390	Wed Sep 13 20:22:38 2000
++++ bc-1.06/bc/load.c	Wed Sep  5 16:10:18 2001
+@@ -156,7 +156,10 @@
+   long  label_no;
+   long  vaf_name;	/* variable, array or function number. */
+   long  func;
+-  program_counter save_adr;
++  /* Make save_adr static. Otherwise the whole address save stuff doesn't make
++     any sense at all and break e.g. on S390.
++     09/05/01 Phil Knirsch <pknirsch at redhat.de> */
++  static program_counter save_adr;
+ 
+   /* Initialize. */
+   str = code;
================================================================



More information about the pld-cvs-commit mailing list