A tiny patch for SH
kaz Kojima
kkojima@rr.iij4u.or.jp
Tue Sep 18 04:41:00 GMT 2001
Hi,
Here is a tiny patch for SH to fix trivial errors.
kaz
--
2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse
condition.
(elf_machine_rela_relative): Add a missing declaration.
Index: dl-machine.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/sh/dl-machine.h,v
retrieving revision 1.13
diff -u -r1.13 dl-machine.h
--- dl-machine.h 2001/08/26 22:26:37 1.13
+++ dl-machine.h 2001/09/18 11:23:34
@@ -487,7 +487,7 @@
}
}
#ifndef RTLD_BOOTSTRAP
- else if (__builtin_expect (r_type != R_SH_NONE, 0))
+ else if (__builtin_expect (r_type == R_SH_NONE, 0))
return;
#endif
else
@@ -561,6 +561,8 @@
elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
Elf32_Addr *const reloc_addr)
{
+ Elf32_Addr value;
+
if (reloc->r_addend)
value = l_addr + reloc->r_addend;
else
More information about the Libc-hacker
mailing list