diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-06-22 08:14:52 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-06-22 08:14:52 +0000 |
commit | d297e80737e98fc5ded18a26837b0178daa539b8 (patch) | |
tree | f779ac3e716a76c6dc84776732c5fb17f5217e97 /bfd | |
parent | 0c195c0ad40b1428fa41faa0b63dd44c8ed73a09 (diff) | |
download | gdb-d297e80737e98fc5ded18a26837b0178daa539b8.zip gdb-d297e80737e98fc5ded18a26837b0178daa539b8.tar.gz gdb-d297e80737e98fc5ded18a26837b0178daa539b8.tar.bz2 |
2009-06-22 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
the relocs array.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/mach-o.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 11bfbfc..7e7b526 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-06-22 Tristan Gingold <gingold@adacore.com> + + * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to + the relocs array. + 2009-06-22 Alan Modra <amodra@bigpond.net.au> * 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 cf1d1e0..8071dee 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; |