projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32425da
)
* elflink.c (elf_link_sort_relocs): Return early if there are no
author
Nick Clifton
<nickc@redhat.com>
Thu, 18 Jun 2009 10:48:58 +0000
(10:48 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Thu, 18 Jun 2009 10:48:58 +0000
(10:48 +0000)
relocs to sort.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elflink.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index b1ebfcfcc8e80cb8b0b5714b2d391802fa9ba94f..8f3edb08d724e75c1357c6ef08e276361afd6b49 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+2009-06-18 Nick Clifton <nickc@redhat.com>
+
+ * elflink.c (elf_link_sort_relocs): Return early if there are no
+ relocs to sort.
+
2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
Merge cegcc and mingw32ce target name changes from
diff --git
a/bfd/elflink.c
b/bfd/elflink.c
index 70bca46953e97adf1c95949fa373932d71c8ccac..2366dd4047841de1adabb672e3a3beebf9892f76 100644
(file)
--- a/
bfd/elflink.c
+++ b/
bfd/elflink.c
@@
-8082,6
+8082,8
@@
elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec)
+ (i2e - 1) * sizeof (Elf_Internal_Rela));
count = dynamic_relocs->size / ext_size;
+ if (count == 0)
+ return 0;
sort = bfd_zmalloc (sort_elt * count);
if (sort == NULL)