bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] trivial correction for glibc ia64 strlen.S


From: Martin Pool
Subject: [patch] trivial correction for glibc ia64 strlen.S
Date: Fri, 2 May 2003 10:45:17 +1000
User-agent: Mutt/1.5.4i

I was just looking at the ia64 glibc, and noticed that strlen.S
declares a global symbol when it only wants a local symbol.  This
means gdb incorrectly stops disassembling the function at the l2 line,
and 'l2' shows up as a global symbol when it really doesn't need to.


diff -ur glibc-2.3.2/sysdeps/ia64/strlen.S glibc-2.3.2-mbp/sysdeps/ia64/strlen.S
--- glibc-2.3.2/sysdeps/ia64/strlen.S   2001-07-06 14:55:54.000000000 +1000
+++ glibc-2.3.2-mbp/sysdeps/ia64/strlen.S       2003-05-01 16:18:45.000000000 
+1000
@@ -73,7 +73,7 @@
        ld8     val1 = [str], 8;;
        nop.b   0
        nop.b   0
-l2:    ld8.s   val2 = [str], 8         // don't bomb out here
+.l2:   ld8.s   val2 = [str], 8         // don't bomb out here
        czx1.r  pos0 = val1     
        ;;
        cmp.ne  p6, p0 = 8, pos0
@@ -81,7 +81,7 @@
        chk.s   val2, .recovery
 .back:
        mov     val1 = val2     
-       br.cond.dptk l2
+       br.cond.dptk .l2
 .foundit:
        sub     tmp = str, origadd      // tmp = crt address - orig
        add     len = len, pos0;;


-- 
Martin 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]