diff options
author | kib <kib@FreeBSD.org> | 2012-03-22 14:20:51 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-03-22 14:20:51 +0000 |
commit | 625402758bbbfc93f3af7661c735780ad2f94cd5 (patch) | |
tree | 575831251bf75cadb2609a8e274cbb1bac859020 /libexec/rtld-elf/powerpc64 | |
parent | 348388ff1ced917315af86330df398adb549d318 (diff) | |
download | FreeBSD-src-625402758bbbfc93f3af7661c735780ad2f94cd5.zip FreeBSD-src-625402758bbbfc93f3af7661c735780ad2f94cd5.tar.gz |
Use xmalloc() instead of malloc() in the places where malloc() calls
are assumed to not fail.
Make the xcalloc() calling conventions follow the calloc(3) calling
conventions and replace unchecked calls to calloc() with calls to
xcalloc().
Remove redundand declarations from xmalloc.c, which are already
present in rtld.h.
Reviewed by: kan
Discussed with: bde
MFC after: 2 weeks
Diffstat (limited to 'libexec/rtld-elf/powerpc64')
-rw-r--r-- | libexec/rtld-elf/powerpc64/reloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/powerpc64/reloc.c b/libexec/rtld-elf/powerpc64/reloc.c index 46e2c62..92df83d 100644 --- a/libexec/rtld-elf/powerpc64/reloc.c +++ b/libexec/rtld-elf/powerpc64/reloc.c @@ -338,7 +338,7 @@ reloc_plt_object(Obj_Entry *obj, const Elf_Rela *rela) reloff = rela - obj->pltrela; if (obj->priv == NULL) - obj->priv = malloc(obj->pltrelasize); + obj->priv = xmalloc(obj->pltrelasize); glink = obj->priv + reloff*sizeof(Elf_Addr)*2; dbg(" reloc_plt_object: where=%p,reloff=%lx,glink=%p", (void *)where, reloff, glink); |