summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-05-25 10:54:19 (GMT)
committerespie <espie@openbsd.org>2017-05-25 10:54:19 (GMT)
commit0c3bdbf541b8498589e4e54d28eb33201d63fac0 (patch)
tree34d66ec7be22be2312aae5b8fb3a5c1f70c03bca
parent4c569535ea0460ce2bacc4037d092e52be2c7e28 (diff)
downloadopenbsd-ports-0c3bdbf541b8498589e4e54d28eb33201d63fac0.tar.gz
openbsd-ports-0c3bdbf541b8498589e4e54d28eb33201d63fac0.tar.xz
fix return error on clang. still doesn't link (relocation error)
-rw-r--r--devel/msp430/gdb/patches/patch-sim_msp430_interp_c27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/msp430/gdb/patches/patch-sim_msp430_interp_c b/devel/msp430/gdb/patches/patch-sim_msp430_interp_c
new file mode 100644
index 0000000..725c57a
--- /dev/null
+++ b/devel/msp430/gdb/patches/patch-sim_msp430_interp_c
@@ -0,0 +1,27 @@
+$OpenBSD: patch-sim_msp430_interp_c,v 1.1 2017/05/25 10:54:19 espie Exp $
+
+Index: sim/msp430/interp.c
+--- sim/msp430/interp.c.orig
++++ sim/msp430/interp.c
+@@ -1880,18 +1880,18 @@ get_stop_addr (struct bfd *abfd)
+ storage_needed = bfd_get_symtab_upper_bound (abfd);
+
+ if (storage_needed < 0)
+- return;
++ return 0;
+
+ if (storage_needed == 0)
+ {
+- return;
++ return 0;
+ }
+
+ symbol_table = (asymbol **) xmalloc (storage_needed);
+ number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
+
+ if (number_of_symbols < 0)
+- return;
++ return 0;
+
+ for (i = 0; i < number_of_symbols; i++)
+ {