Date: Sat, 19 Sep 1998 06:50:01 -0700 (PDT) From: Doug Rabson <dfr@nlsystems.com> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7980: New ld buggy! Message-ID: <199809191350.GAA04810@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/7980; it has been noted by GNATS. From: Doug Rabson <dfr@nlsystems.com> To: Joakim Henriksson <murduth@ludd.luth.se> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/7980: New ld buggy! Date: Sat, 19 Sep 1998 14:40:39 +0100 (BST) Please try this patch to src/contrib/binutils/bfd which at least fixes the test case in the bug report: Index: elflink.h =================================================================== RCS file: /home/ncvs/src/contrib/binutils/bfd/elflink.h,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 elflink.h --- elflink.h 1998/09/06 22:57:08 1.1.1.2 +++ elflink.h 1998/09/19 10:18:46 @@ -719,12 +719,14 @@ } sz = bfd_section_size (abfd, s); - msg = (char *) bfd_alloc (abfd, sz); + msg = (char *) bfd_alloc (abfd, sz+1); if (msg == NULL) goto error_return; if (! bfd_get_section_contents (abfd, s, msg, (file_ptr) 0, sz)) goto error_return; + + msg[sz] = '\0'; if (! (_bfd_generic_link_add_one_symbol (info, abfd, name, BSF_WARNING, s, (bfd_vma) 0, msg, -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809191350.GAA04810>