summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 19:25:36 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 19:25:36 +0000
commit6f50cb0027e20134991525fa43a9b95e7640c9ed (patch)
treec945bf582dd0643558a2023ef812b54f4b65d31a /sysdeps
parentcef0a48dd199f20461719c667b977264d51da935 (diff)
downloadglibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.tar.gz
glibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.tar.xz
glibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.zip
Update.
	* sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
	Check for signed overflow, not unsigned.

2003-02-21  Jakub Jelinek  <jakub@redhat.com>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/dl-machine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
index afae50ac80..94eb028c81 100644
--- a/sysdeps/x86_64/dl-machine.h
+++ b/sysdeps/x86_64/dl-machine.h
@@ -1,5 +1,5 @@
 /* Machine-dependent ELF dynamic relocation inline functions.  x86-64 version.
-   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>.
 
@@ -463,7 +463,7 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
 	  *(unsigned int *) reloc_addr = value + reloc->r_addend
 	    - (Elf64_Addr) reloc_addr;
 	  if (value + reloc->r_addend - (Elf64_Addr) reloc_addr
-	      != (unsigned int)(value + reloc->r_addend - (Elf64_Addr) reloc_addr))
+	      != (int)(value + reloc->r_addend - (Elf64_Addr) reloc_addr))
 	    {
 	      const char *strtab;