This is the mail archive of the binutils-cvs@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]

[binutils-gdb/binutils-2_26-branch] objcopy add-symbol uninitialised struct


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea800aac34f731fa2530cde2d90e7c3f64e1bbf8

commit ea800aac34f731fa2530cde2d90e7c3f64e1bbf8
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Jun 13 10:34:38 2016 +0930

    objcopy add-symbol uninitialised struct
    
    	* objcopy.c (copy_main): Init newsym->othersym.

Diff:
---
 binutils/ChangeLog | 4 ++++
 binutils/objcopy.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0a8dcd8..81cb7bd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-13  Alan Modra  <amodra@gmail.com>
+
+	* objcopy.c (copy_main): Init newsym->othersym.
+
 2016-03-14  H.J. Lu  <hongjiu.lu@intel.com>
 
 	Backport from master
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 4a9f043..7feddb4 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -4096,6 +4096,7 @@ copy_main (int argc, char *argv[])
 	      }
 
 	    t = strchr (t + 1, ',');
+	    newsym->othersym = NULL;
 	    if (t)
 	      newsym->flags = parse_symflags (t+1, &newsym->othersym);
 	    else


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