This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: patches for Irix binutils 2.18
> Applying to current mainline sources.
Thanks.
> I don't see the need for this. The obstack_alloc function already
> returns void *, as does the obstack_alloc macro.
Right, sorry, I hadn't looked.
There was a break and this did fix it, but...
Probably missing the #include.
I'll confirm/patch/test.
I forgot this:
diff -u -r /src/binutils-2.18.orig/bfd/elflink.c /src/binutils-2.18/bfd/elflink.c
--- /src/binutils-2.18.orig/bfd/elflink.c Fri Aug 24 07:01:08 2007
+++ /src/binutils-2.18/bfd/elflink.c Mon Oct 20 05:23:47 2008
@@ -7374,8 +7374,8 @@
int symlen;
bfd_vma a;
bfd_vma b;
- const int bufsz = 4096;
- char symbuf [bufsz];
+ char symbuf [4096];
+ const int bufsz = sizeof(symbuf);
const char * symend;
bfd_boolean symbol_is_section = FALSE;
- Jay