about summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-11-30 04:49:04 +0000
committerRoland McGrath <roland@gnu.org>1995-11-30 04:49:04 +0000
commitb2518f55c0bce9b3f32551c2a0e4addcaeac7b0f (patch)
treec0d530cc474670cb87d95f404c577ca4e6a2a25a /sysdeps/i386
parentb7843ea9ff56cd1e941abf9fab7c9c8c4e7dde69 (diff)
downloadglibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.tar.gz
glibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.tar.xz
glibc-b2518f55c0bce9b3f32551c2a0e4addcaeac7b0f.zip
Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951130
	* libio/vsnprintf.c (__vsnprintf): Define as alias.
	* libio/iovsscanf.c (__vsscanf): Define as alias.
	* asprintf.c: Remove libio adaptation code added by drepper.
	* dprintf.c: Likewise.
	* printf.c: Likewise.
	* scanf.c: Likewise.
	* snprintf.c: Likewise.
	* sprintf.c: Likewise.
	* sscanf.c: Likewise.
	* vprintf.c: Likewise.
	* stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
	function.
	(vfscanf): Define unconditionally.

	* sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
	zero for value.

	* misc/getpass.c: Write a newline after reading the unechoed
	password.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/dl-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index bdca6bec3b..7c22305307 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -77,7 +77,7 @@ elf_machine_rel (struct link_map *map,
 		 Elf32_Addr sym_loadaddr, const Elf32_Sym *sym)
 {
   Elf32_Addr *const reloc_addr = (void *) (map->l_addr + reloc->r_offset);
-  const Elf32_Addr sym_value = sym_loadaddr + sym->st_value;
+  const Elf32_Addr sym_value = sym ? sym_loadaddr + sym->st_value : 0;
 
   switch (ELF32_R_TYPE (reloc->r_info))
     {