mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
* som.c (som_get_reloc_upper_bound): If there are no relocs return enough
space to hold a NULL pointer.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-09-26 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* som.c (som_get_reloc_upper_bound): If there are no relocs return
|
||||||
|
enough space to hold a NULL pointer.
|
||||||
|
|
||||||
2007-09-26 Alan Modra <amodra@bigpond.net.au>
|
2007-09-26 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
|
* elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
|
||||||
|
@ -4939,8 +4939,11 @@ som_get_reloc_upper_bound (bfd *abfd, sec_ptr asect)
|
|||||||
return -1;
|
return -1;
|
||||||
return (asect->reloc_count + 1) * sizeof (arelent *);
|
return (asect->reloc_count + 1) * sizeof (arelent *);
|
||||||
}
|
}
|
||||||
/* There are no relocations. */
|
|
||||||
return 0;
|
/* There are no relocations. Return enough space to hold the
|
||||||
|
NULL pointer which will be installed if som_canonicalize_reloc
|
||||||
|
is called. */
|
||||||
|
return sizeof (arelent *);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert relocations from SOM (external) form into BFD internal
|
/* Convert relocations from SOM (external) form into BFD internal
|
||||||
|
Reference in New Issue
Block a user