From: Tristan Gingold Date: Mon, 22 Jun 2009 08:14:52 +0000 (+0000) Subject: 2009-06-22 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d297e80737e98fc5ded18a26837b0178daa539b8;p=binutils-gdb.git 2009-06-22 Tristan Gingold * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to the relocs array. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 11bfbfcc1d2..7e7b526d370 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-06-22 Tristan Gingold + + * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to + the relocs array. + 2009-06-22 Alan Modra * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch. diff --git a/bfd/mach-o.c b/bfd/mach-o.c index cf1d1e02394..8071dee86ae 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -615,6 +615,7 @@ bfd_mach_o_canonicalize_reloc (bfd *abfd, asection *asect, } rels[i] = &res[i]; } + rels[asect->reloc_count] = NULL; asect->relocation = res; free (native_relocs); return i;