This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]