summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-02-18 18:22:17 (GMT)
committerGitHub <noreply@github.com>2019-02-18 18:22:17 (GMT)
commit7d621cd831e4fb015fa151437051192135337006 (patch)
tree7f1313ccc9112cb0bc1a231a33c5344e54ec2c94 /packages
parentfb744d81588395a97cee951a151a56501a500e42 (diff)
parent8a61f74f38e33166f6be0dde0cae82cfe055c3bf (diff)
Merge pull request #1142 from stilor/rc2-fixes
Fixes for regressions in 1.24.0-rc1
Diffstat (limited to 'packages')
-rw-r--r--packages/elf2flt/git-6d80ab6c/0000-diagnostics.h.patch30
-rw-r--r--packages/elf2flt/package.desc2
-rw-r--r--packages/newlib/3.0.0.20180831/version.desc1
-rw-r--r--packages/newlib/3.1.0.20181231/version.desc1
-rw-r--r--packages/strace/4.26/0000-mips-o32-fix-build.patch91
5 files changed, 92 insertions, 33 deletions
diff --git a/packages/elf2flt/git-6d80ab6c/0000-diagnostics.h.patch b/packages/elf2flt/git-6d80ab6c/0000-diagnostics.h.patch
deleted file mode 100644
index b74a0ac..0000000
--- a/packages/elf2flt/git-6d80ab6c/0000-diagnostics.h.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-commit 2c8ab83ec84662f4916b5237da3e4330956a32eb
-Author: Alexey Neyman <stilor@att.net>
-Date: Sat Sep 29 13:12:08 2018 -0700
-
- Create symlink to <bfd/diagnostics.h> in bfd-headers
-
- Included by <bfd/bfd.h>.
-
- Signed-off-by: Alexey Neyman <stilor@att.net>
-
-diff --git a/Makefile.in b/Makefile.in
-index cfad06c..8162cba 100644
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -123,11 +123,14 @@ sinclude .deps
- $(CC) -MM $(CPPFLAGS) $(srcdir)/*.c > .deps
-
-
-+# Not all versions of binutils have all these headers, some may end up
-+# as dangling symlinks
- bfd-headers/.stamp:
- rm -rf bfd-headers
- mkdir bfd-headers
- ln -sf $(BFD_INCLUDE_DIR)/bfd.h bfd-headers/bfd.h
-- for f in ansidecl filenames hashtab libiberty symcat; do \
-+ ln -sf $(BFD_INCLUDE_DIR)/diagnostics.h bfd-headers/diagnostics.h
-+ for f in ansidecl filenames hashtab libiberty symcat diagnostics; do \
- ln -sf $(BINUTILS_INCLUDE_DIR)/$$f.h bfd-headers/$$f.h || exit 1; \
- done
- ln -sf $(BINUTILS_INCLUDE_DIR)/elf bfd-headers/elf
diff --git a/packages/elf2flt/package.desc b/packages/elf2flt/package.desc
index c46788c..a6b8093 100644
--- a/packages/elf2flt/package.desc
+++ b/packages/elf2flt/package.desc
@@ -1,2 +1,2 @@
repository='git https://github.com/uclinux-dev/elf2flt.git'
-repository_cset='6d80ab6c93409e796f85da404bde84b841231531'
+repository_cset='7e33f28df198c46764021ed14408bd262751e148'
diff --git a/packages/newlib/3.0.0.20180831/version.desc b/packages/newlib/3.0.0.20180831/version.desc
index 76f1447..e69de29 100644
--- a/packages/newlib/3.0.0.20180831/version.desc
+++ b/packages/newlib/3.0.0.20180831/version.desc
@@ -1 +0,0 @@
-experimental='yes'
diff --git a/packages/newlib/3.1.0.20181231/version.desc b/packages/newlib/3.1.0.20181231/version.desc
index 76f1447..e69de29 100644
--- a/packages/newlib/3.1.0.20181231/version.desc
+++ b/packages/newlib/3.1.0.20181231/version.desc
@@ -1 +0,0 @@
-experimental='yes'
diff --git a/packages/strace/4.26/0000-mips-o32-fix-build.patch b/packages/strace/4.26/0000-mips-o32-fix-build.patch
new file mode 100644
index 0000000..d3c828e
--- /dev/null
+++ b/packages/strace/4.26/0000-mips-o32-fix-build.patch
@@ -0,0 +1,91 @@
+commit 2c8b6de913973274e877639658e9e7273a012adb
+Author: Dmitry V. Levin <ldv@altlinux.org>
+Date: Tue Jan 8 19:23:44 2019 +0000
+
+ mips o32: fix build
+
+ Commit 917c2ccf3a67 "Refactor stack pointers" moved mips_REG_* macros
+ from linux/mips/arch_regs.h to linux/mips/arch_regs.c because these
+ macros are no longer used outside syscall.c or files included by
+ syscall.c, but this caused a build regression on mips o32 because
+ decode_syscall_subcall() uses mips_REG_SP prior to its definition.
+
+ * syscall.c (decode_syscall_subcall): Move ...
+ * linux/mips/get_syscall_args.c: ... here.
+ * NEWS: Mention this fix.
+
+ Reported-by: Baruch Siach <baruch@tkos.co.il>
+ Fixes: v4.26~61 "Refactor stack pointers"
+
+diff --git a/linux/mips/get_syscall_args.c b/linux/mips/get_syscall_args.c
+index 387aa852..e2889f98 100644
+--- a/linux/mips/get_syscall_args.c
++++ b/linux/mips/get_syscall_args.c
+@@ -37,3 +37,29 @@ arch_get_syscall_args(struct tcb *tcp)
+ #endif
+ return 1;
+ }
++
++#ifdef SYS_syscall_subcall
++static void
++decode_syscall_subcall(struct tcb *tcp)
++{
++ if (!scno_is_valid(tcp->u_arg[0]))
++ return;
++ tcp->scno = tcp->u_arg[0];
++ tcp->qual_flg = qual_flags(tcp->scno);
++ tcp->s_ent = &sysent[tcp->scno];
++ memmove(&tcp->u_arg[0], &tcp->u_arg[1],
++ sizeof(tcp->u_arg) - sizeof(tcp->u_arg[0]));
++ /*
++ * Fetching the last arg of 7-arg syscalls (fadvise64_64
++ * and sync_file_range) requires additional code,
++ * see linux/mips/get_syscall_args.c
++ */
++ if (tcp->s_ent->nargs == MAX_ARGS) {
++ if (umoven(tcp,
++ mips_REG_SP + MAX_ARGS * sizeof(tcp->u_arg[0]),
++ sizeof(tcp->u_arg[0]),
++ &tcp->u_arg[MAX_ARGS - 1]) < 0)
++ tcp->u_arg[MAX_ARGS - 1] = 0;
++ }
++}
++#endif /* SYS_syscall_subcall */
+diff --git a/syscall.c b/syscall.c
+index d78f51dd..51fcc721 100644
+--- a/syscall.c
++++ b/syscall.c
+@@ -349,31 +349,8 @@ decode_ipc_subcall(struct tcb *tcp)
+ #endif /* SYS_ipc_subcall */
+
+ #ifdef SYS_syscall_subcall
+-static void
+-decode_syscall_subcall(struct tcb *tcp)
+-{
+- if (!scno_is_valid(tcp->u_arg[0]))
+- return;
+- tcp->scno = tcp->u_arg[0];
+- tcp->qual_flg = qual_flags(tcp->scno);
+- tcp->s_ent = &sysent[tcp->scno];
+- memmove(&tcp->u_arg[0], &tcp->u_arg[1],
+- sizeof(tcp->u_arg) - sizeof(tcp->u_arg[0]));
+-# ifdef LINUX_MIPSO32
+- /*
+- * Fetching the last arg of 7-arg syscalls (fadvise64_64
+- * and sync_file_range) requires additional code,
+- * see linux/mips/get_syscall_args.c
+- */
+- if (tcp->s_ent->nargs == MAX_ARGS) {
+- if (umoven(tcp,
+- mips_REG_SP + MAX_ARGS * sizeof(tcp->u_arg[0]),
+- sizeof(tcp->u_arg[0]),
+- &tcp->u_arg[MAX_ARGS - 1]) < 0)
+- tcp->u_arg[MAX_ARGS - 1] = 0;
+- }
+-# endif /* LINUX_MIPSO32 */
+-}
++/* The implementation is architecture specific. */
++static void decode_syscall_subcall(struct tcb *);
+ #endif /* SYS_syscall_subcall */
+
+ static void