projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3899aa3
)
* elf32-spu.c (build_stub): Fix malloc under-allocation.
author
Alan Modra
<amodra@gmail.com>
Sun, 26 Feb 2012 23:12:16 +0000
(23:12 +0000)
committer
Alan Modra
<amodra@gmail.com>
Sun, 26 Feb 2012 23:12:16 +0000
(23:12 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf32-spu.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
982c9a2
..
7da5c8b
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,7
@@
+2012-02-27 Alan Modra <amodra@gmail.com>
+
+ * elf32-spu.c (build_stub): Fix malloc under-allocation.
+
2012-02-25 Walter Lee <walt@tilera.com>
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
2012-02-25 Walter Lee <walt@tilera.com>
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
diff --git
a/bfd/elf32-spu.c
b/bfd/elf32-spu.c
index
cff9185
..
ab13b7b
100644
(file)
--- a/
bfd/elf32-spu.c
+++ b/
bfd/elf32-spu.c
@@
-1,6
+1,7
@@
/* SPU specific support for 32-bit ELF
/* SPU specific support for 32-bit ELF
- Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012
+ Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This file is part of BFD, the Binary File Descriptor library.
@@
-1425,7
+1426,7
@@
build_stub (struct bfd_link_info *info,
add = (int) irela->r_addend & 0xffffffff;
if (add != 0)
len += 1 + 8;
add = (int) irela->r_addend & 0xffffffff;
if (add != 0)
len += 1 + 8;
- name = bfd_malloc (len);
+ name = bfd_malloc (len
+ 1
);
if (name == NULL)
return FALSE;
if (name == NULL)
return FALSE;