summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/ia64/reloc.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-05-29 22:58:26 +0000
committerkan <kan@FreeBSD.org>2003-05-29 22:58:26 +0000
commit949c40c5fd683b40f39ebfa2783d06b8226148ab (patch)
treeb9989a6b77c2c503eafdb3cf6bf13370f5c6396b /libexec/rtld-elf/ia64/reloc.c
parentb292a2679ee1e9385409c38e0e898f0c2f4cb41c (diff)
downloadFreeBSD-src-949c40c5fd683b40f39ebfa2783d06b8226148ab.zip
FreeBSD-src-949c40c5fd683b40f39ebfa2783d06b8226148ab.tar.gz
Allow threading libraries to register their own locking
implementation in case default one provided by rtld is not suitable. Consolidate various identical MD lock implementation into a single file using appropriate machine/atomic.h. Approved by: re (scottl)
Diffstat (limited to 'libexec/rtld-elf/ia64/reloc.c')
-rw-r--r--libexec/rtld-elf/ia64/reloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libexec/rtld-elf/ia64/reloc.c b/libexec/rtld-elf/ia64/reloc.c
index 7db2823..0c62a87 100644
--- a/libexec/rtld-elf/ia64/reloc.c
+++ b/libexec/rtld-elf/ia64/reloc.c
@@ -122,8 +122,8 @@ alloc_fptrs(Obj_Entry *obj, bool mapped)
}
/*
- * This assertion is necessary to guarantee function pointer
- * uniqueness
+ * This assertion is necessary to guarantee function pointer
+ * uniqueness
*/
assert(fptrs != NULL);
@@ -136,12 +136,12 @@ free_fptrs(Obj_Entry *obj, bool mapped)
struct fptr **fptrs;
size_t fbytes;
- fptrs = obj->priv;
+ fptrs = obj->priv;
if (fptrs == NULL)
return;
fbytes = obj->nchains * sizeof(struct fptr *);
- if (mapped)
+ if (mapped)
munmap(fptrs, fbytes);
else
free(fptrs);
@@ -186,7 +186,7 @@ reloc_non_plt_obj(Obj_Entry *obj_rtld, Obj_Entry *obj, const Elf_Rela *rela,
/*
* We have to make sure that all @fptr references to
* the same function are identical so that code can
- * compare function pointers.
+ * compare function pointers.
*/
const Elf_Sym *def;
const Obj_Entry *defobj;
@@ -313,8 +313,8 @@ done:
if (cache)
munmap(cache, bytes);
- /*
- * Release temporarily mapped fptrs if relocating
+ /*
+ * Release temporarily mapped fptrs if relocating
* rtld object itself. A new table will be created
* in make_function_pointer using malloc when needed.
*/
OpenPOWER on IntegriCloud