In reference to a message from Randolph Chung, dated Sep 03:
> i'll try this later....

well, the lazy answer is that this patch works... replaces the existing
ia64-reloc-none patch

i'll try to spend some more time to track down where the reloc is coming
from so we can try to fix this in binutils, if it's indeed a bug
there...

randolph


#! /bin/sh -e

# DP: Fix R_IA64_NONE relocs.
# DP: From: Andreas Schwab <[EMAIL PROTECTED]>

if [ $# -ne 2 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -d "$2" -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p0 < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0

--- sysdeps/ia64/dl-machine.h~  Sun Mar 24 16:11:20 2002
+++ sysdeps/ia64/dl-machine.h   Sun Mar 24 16:14:21 2002
@@ -546,12 +546,11 @@ elf_machine_rela (struct link_map *map,
 # endif
         value += map->l_addr;
     }
-# ifndef RTLD_BOOTSTRAP
-  else if (r_type == R_IA64_NONE)
-    return;
-# endif
   else
 #endif
+  if (r_type == R_IA64_NONE)
+    return;
+  else
     {
       struct link_map *sym_map;
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to