]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 12 Jun 2003 22:31:43 +0000 (22:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 12 Jun 2003 22:31:43 +0000 (22:31 +0000)
* sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date alse
if only PF_INET address is needed.

* nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
case of an error.

ChangeLog
linuxthreads/ChangeLog
linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
nss/getXXbyYY_r.c
sysdeps/posix/getaddrinfo.c
sysdeps/powerpc/powerpc64/dl-machine.h
sysdeps/powerpc/powerpc64/sysdep.h
sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S

index d43e3b61464c94dbbe5a6b1b420301e675d81358..3e681192795a4e144e50debbfee1c4d40f349325 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date alse
+       if only PF_INET address is needed.
+
+       * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
+       case of an error.
+
        * scripts/config.guess: Update from upstream version.
        * scripts/config.sub: Likewise.
 
index 20f387b3e843333b977314e82305c02ce22b9bd2..e09e0d749aec4d3696c6ac3e1600e82aed753678 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-12  Steven Munroe <sjmunroe@us.ibm.com>
+
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
+       (SINGLE_THREAD_P): Replace @ got notation with @toc.
+
 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/powerpc/pspinlock.c (__pthread_spin_init): Fix
index 58257a17b2c3406b41362696c9b3cdf99893b6bf..2745c026cdfce45c4fc85e0435c6828611747216 100644 (file)
@@ -89,7 +89,11 @@ extern int __local_multiple_threads attribute_hidden;
 #  define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
 # else
 #   define SINGLE_THREAD_P                                             \
-  ld    10,__local_multiple_threads@got(2);                            \
+       .section        ".toc","aw";  \
+.LC__local_multiple_threads:; \
+       .tc __local_multiple_threads[TC],__local_multiple_threads; \
+  .previous;              \
+  ld    10,.LC__local_multiple_threads@toc(2);                         \
   ld    10,0(10);                                                              \
   cmpdi 10,0
 # endif
index 632778d9aa2204077f3df50ba1a71ab88fbc2cfe..3f873a5fde304a469ea977c0cc113b513008bd7c 100644 (file)
@@ -247,12 +247,14 @@ done:
 #ifdef POSTPROCESS
   POSTPROCESS;
 #endif
-  return (status != NSS_STATUS_TRYAGAIN ? 0
+  return (status == NSS_STATUS_SUCCESS ? 0
+         : (status != NSS_STATUS_TRYAGAIN
 #ifdef NEED_H_ERRNO
-         /* These functions only set errno if h_errno is NETDB_INTERNAL.  */
-         : *h_errnop != NETDB_INTERNAL ? EAGAIN
+            /* These functions only set errno if h_errno is
+               NETDB_INTERNAL.  */
+            && *h_errnop == NETDB_INTERNAL
 #endif
-         : errno);
+            ? errno : EAGAIN));
 }
 
 
index 0d6ac84adebca221b88646d91ff2bda62a6099aa..3cdb5df1c8799e78b59556d1d57b525f603d625c 100644 (file)
@@ -671,7 +671,10 @@ gaih_inet (const char *name, const struct gaih_service *service,
              no_inet6_data = no_data;
            }
          else if (req->ai_family == AF_INET)
-           gethosts (AF_INET, struct in_addr);
+           {
+             gethosts (AF_INET, struct in_addr);
+             no_inet6_data = no_data;
+           }
 
          if (no_data != 0 && no_inet6_data != 0)
            {
index d13649c22f8d432c874ec63faf984d0f047ba8b7..1336e0d309769a78f5cda6b7dc045ec83ca8c26f 100644 (file)
@@ -239,6 +239,18 @@ elf_machine_dynamic (void)
 "_dl_start_user:\n"                                                    \
 "      .quad   ._dl_start_user, .TOC.@tocbase, 0\n"                    \
 "      .previous\n"                                                    \
+"      .section        \".toc\",\"aw\"\n"  \
+".LC__dl_starting_up:\n"  \
+"      .tc _dl_starting_up_internal[TC],_dl_starting_up_internal\n"  \
+".LC__rtld_global:\n"  \
+"      .tc _rtld_global[TC],_rtld_global\n"  \
+".LC__dl_argc:\n"  \
+"      .tc _dl_argc[TC],_dl_argc\n"  \
+".LC__dl_argv:\n"  \
+"      .tc _dl_argv_internal[TC],_dl_argv_internal\n"  \
+".LC__dl_fini:\n"  \
+"      .tc _dl_fini[TC],_dl_fini\n"  \
+"      .previous\n"                                                    \
 "      .globl  ._dl_start_user\n"                                      \
 "      .type   ._dl_start_user,@function\n"                            \
 /* Now, we do our main work of calling initialisation procedures.  \
@@ -250,9 +262,9 @@ elf_machine_dynamic (void)
 /* the address of _start in r30.  */                                   \
 "      mr      30,3\n"                                                 \
 /* &_dl_argc in 29, &_dl_argv in 27, and _dl_loaded in 28.  */         \
-"      ld      28,_rtld_global@got(2)\n"    \
-"      ld      29,_dl_argc@got(2)\n"                                   \
-"      ld      27,_dl_argv@got(2)\n"                                   \
+"      ld      28,.LC__rtld_global@toc(2)\n"    \
+"      ld      29,.LC__dl_argc@toc(2)\n"                                       \
+"      ld      27,.LC__dl_argv@toc(2)\n"                                       \
 /* _dl_init (_dl_loaded, _dl_argc, _dl_argv, _dl_argv+_dl_argc+1).  */ \
 "      ld      3,0(28)\n"                                              \
 "      lwa     4,0(29)\n"                                              \
@@ -279,8 +291,8 @@ elf_machine_dynamic (void)
 "      addi    6,6,8\n"                                                \
 /* Pass a termination function pointer (in this case _dl_fini) in      \
    r7.  */                                                             \
-"      ld      7,_dl_fini@got(2)\n"                                    \
-"      ld      26,_dl_starting_up@got(2)\n"                            \
+"      ld      7,.LC__dl_fini@toc(2)\n"                                        \
+"      ld      26,.LC__dl_starting_up@toc(2)\n"                                \
 /* Pass the stack pointer in r1 (so far so good), pointing to a NULL   \
    value.  This lets our startup code distinguish between a program    \
    linked statically, which linux will call with argc on top of the    \
index 0af2b0a2fc5aae9e6a940b3c537ec600e6c9e119..203484c896e5185b4be020cd4496749b3c567c5b 100644 (file)
   .pushsection;          \
   .section ".data";      \
   .align ALIGNARG(2);    \
-0:  .long  0;            \
+__mcount:            \
+  .long  0;            \
+  .previous;              \
+       .section        ".toc","aw";  \
+.LC__mcount:; \
+       .tc __mcount[TC],__mcount; \
   .previous;              \
   mflr  r0;              \
   std   r0,16(r1);        \
-  ld    r0,0b@got(r2);    \
+  ld    r0,.LC__mcount@toc(r2);    \
   bl    JUMPTARGET(_mcount);
 #else /* SYSV_ELF_PROFILING */
 #define CALL_MCOUNT      \
   .pushsection;          \
   .section ".data";      \
   .align ALIGNARG(2);    \
-0:  .long  0;            \
+__mcount:            \
+  .long  0;            \
+  .previous;              \
+       .section        ".toc","aw";  \
+.LC__mcount:; \
+       .tc __mcount[TC],__mcount; \
   .previous;              \
   mflr  r0;              \
   std   r0,16(r1);        \
-  ld    r0,0b@got(r2);    \
+  ld    r0,.LC__mcount@toc(r2);    \
   bl    JUMPTARGET(_mcount);
 #else /* SYSV_ELF_PROFILING */
 #define CALL_MCOUNT  \
index d8f8bab94d7268adbbcdf36688d41c5c2e862ed7..233697bf5ebedd6c25f99cad82de63ed749fb014 100644 (file)
@@ -24,6 +24,9 @@
 #include <bp-asm.h>
 
        .comm   __curbrk,8,8
+       .section        ".toc","aw"
+.LC__curbrk:
+       .tc __curbrk[TC],__curbrk
        .section ".text"
 ENTRY (BP_SYM (__brk))
        DISCARD_BOUNDS (r3)     /* the bounds are meaningless, so toss 'em.  */
@@ -32,7 +35,7 @@ ENTRY (BP_SYM (__brk))
        std     r3,48(r1)
        DO_CALL(SYS_ify(brk))
        ld     r6,48(r1)
-       ld      r5,__curbrk@got(r2)
+       ld      r5,.LC__curbrk@toc(r2)
        std     r3,0(r5)
        cmpld   r6,r3
        addi    r1,r1,64