|
|
385abae |
Description: <short summary of the patch>
|
|
|
385abae |
TODO: Put a short summary on the line above and replace this paragraph
|
|
|
385abae |
with a longer explanation of this change. Complete the meta-information
|
|
|
385abae |
with other relevant fields (see below for details). To make it easier, the
|
|
|
385abae |
information below has been extracted from the changelog. Adjust it or drop
|
|
|
385abae |
it.
|
|
|
385abae |
.
|
|
|
385abae |
gcl (2.6.12-35) unstable; urgency=medium
|
|
|
385abae |
.
|
|
|
385abae |
* Version_2_6_13pre47
|
|
|
385abae |
Author: Camm Maguire <camm@debian.org>
|
|
|
385abae |
|
|
|
385abae |
---
|
|
|
385abae |
The information above should follow the Patch Tagging Guidelines, please
|
|
|
385abae |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
|
|
|
385abae |
are templates for supplementary fields that you might want to add:
|
|
|
385abae |
|
|
|
385abae |
Origin: <vendor|upstream|other>, <url of original patch>
|
|
|
385abae |
Bug: <url in upstream bugtracker>
|
|
|
385abae |
Bug-Debian: https://bugs.debian.org/<bugnumber>
|
|
|
385abae |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
|
|
|
385abae |
Forwarded: <no|not-needed|url proving that it has been forwarded>
|
|
|
385abae |
Reviewed-By: <name and email of someone who approved the patch>
|
|
|
385abae |
Last-Update: 2016-10-01
|
|
|
385abae |
|
|
|
385abae |
--- gcl-2.6.12.orig/h/elf32_hppa_reloc_special.h
|
|
|
385abae |
+++ gcl-2.6.12/h/elf32_hppa_reloc_special.h
|
|
|
385abae |
@@ -39,3 +39,6 @@ label_got_symbols(void *v1,Shdr *sec1,Sh
|
|
|
385abae |
return 0;
|
|
|
385abae |
|
|
|
385abae |
}
|
|
|
385abae |
+
|
|
|
385abae |
+#undef LOAD_SYM_BY_NAME
|
|
|
385abae |
+#define LOAD_SYM_BY_NAME(sym,st1) (!strncmp(st1+sym->st_name,"$$dyncall",8))
|
|
|
385abae |
--- gcl-2.6.12.orig/o/unixsys.c
|
|
|
385abae |
+++ gcl-2.6.12/o/unixsys.c
|
|
|
385abae |
@@ -31,16 +31,16 @@ Foundation, 675 Mass Ave, Cambridge, MA
|
|
|
385abae |
int
|
|
|
385abae |
vsystem(const char *command) {
|
|
|
385abae |
|
|
|
385abae |
- unsigned j,n=strlen(command);
|
|
|
385abae |
- char *z=alloca(n+1),**p1,**pp,*c;
|
|
|
385abae |
+ unsigned j,n=strlen(command)+1;
|
|
|
385abae |
+ char *z=alloca(n),**p1,**pp,*c;
|
|
|
385abae |
int s;
|
|
|
385abae |
pid_t pid;
|
|
|
385abae |
|
|
|
385abae |
- memcpy(z,command,n+1);
|
|
|
385abae |
- for (j=0,c=z;strtok(c," \n\t");c=NULL,j++);
|
|
|
385abae |
+ memcpy(z,command,n);
|
|
|
385abae |
+ for (j=1,c=z;strtok(c," \n\t");c=NULL,j++);
|
|
|
385abae |
|
|
|
385abae |
- memcpy(z,command,n+1);
|
|
|
385abae |
- p1=alloca((j+1)*sizeof(*p1));
|
|
|
385abae |
+ memcpy(z,command,n);
|
|
|
385abae |
+ p1=alloca(j*sizeof(*p1));
|
|
|
385abae |
for (pp=p1,c=z;(*pp=strtok(c," \n\t"));c=NULL,pp++);
|
|
|
385abae |
|
|
|
385abae |
if (!(pid=vfork())) {
|