From a107eeb3e5ee28462c22cee84be5646e640ca937 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 5 Jul 2005 14:53:03 +0000 Subject: [PATCH] - fix lib loading (e.g. on x86_64 bc -l give sigsegv) Changed files: bc-save_adr.patch -> 1.1 --- bc-save_adr.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bc-save_adr.patch diff --git a/bc-save_adr.patch b/bc-save_adr.patch new file mode 100644 index 0000000..2ead293 --- /dev/null +++ b/bc-save_adr.patch @@ -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 */ ++ static program_counter save_adr; + + /* Initialize. */ + str = code; -- 2.43.0