about summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-06 00:19:11 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-06 00:19:11 +0000
commit37d8b77856be9eb9581c3c61d3f7193b3aec6b5c (patch)
tree4dc0065a6aa5f9d46947d27db2b9c83162bf4279 /elf/rtld.c
parentf2b98f97ebc32b68271505131b745289f3255984 (diff)
downloadglibc-37d8b77856be9eb9581c3c61d3f7193b3aec6b5c.tar.gz
glibc-37d8b77856be9eb9581c3c61d3f7193b3aec6b5c.tar.xz
glibc-37d8b77856be9eb9581c3c61d3f7193b3aec6b5c.zip
Update.
	* elf/rtld.c (process_dl_debug): Correct printing help message.
	* elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
	for %s.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 3241cc9d10..436c81b3b8 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -258,11 +258,11 @@ _dl_start_final (void *arg, struct link_map *bootstrap_map_p,
     if (phdr[cnt].p_type == PT_TLS)
       {
 	void *tlsblock;
-	size_t align = MAX (TLS_INIT_TCB_ALIGN,  phdr[cnt].p_align);
+	size_t align = MAX (TLS_INIT_TCB_ALIGN, phdr[cnt].p_align);
 
 	GL(dl_rtld_map).l_tls_blocksize = phdr[cnt].p_memsz;
 	GL(dl_rtld_map).l_tls_initimage_size = phdr[cnt].p_filesz;
-	GL(dl_rtld_map).l_tls_initimage = (void *) (bootstrap_map_p->l_addr
+	GL(dl_rtld_map).l_tls_initimage = (void *) (GL(dl_rtld_map).l_map_start
 						    + phdr[cnt].p_offset);
 
 	/* We can now allocate the initial TLS block.  This can happen
@@ -1476,8 +1476,8 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
 Valid options for the LD_DEBUG environment variable are:\n\n");
 
       for (cnt = 0; cnt < ndebopts; ++cnt)
-	_dl_printf ("  %s%s %s\n", debopts[cnt].name,
-		    "       " + strlen (debopts[cnt].name) - 3,
+	_dl_printf ("  %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
+		    "         " + debopts[cnt].len - 3,
 		    debopts[cnt].helptext);
 
       _dl_printf ("\n\