Skip to content

Commit

Permalink
Updated to fedora-glibc-20081031T2102
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jelinek committed Oct 31, 2008
1 parent 242bfef commit c02fa54
Show file tree
Hide file tree
Showing 151 changed files with 693 additions and 185 deletions.
66 changes: 66 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,69 @@
2008-10-31 Jakub Jelinek <jakub@redhat.com>

* elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
refetch dtv, as it might have changed.
* elf/Makefile: Add rules to build and run tst-tls18.
* elf/tst-tls18.c: New test.
* elf/tst-tlsmod18a.c: New file.

2008-09-09 Aurelien Jarno <aurelien@aurel32.net>

[BZ #6875]
* iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.

2008-10-31 Ulrich Drepper <drepper@redhat.com>

[BZ #6867]
* sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.

[BZ #6919]
* posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
Fix length of copy operation.

2008-10-02 Pierre Habouzit <madcoder@debian.org>

* sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
and fix its calling convention.

2008-10-07 Andreas Schwab <schwab@suse.de>

[BZ #6942]
* resolv/res_send.c (send_vc): Fix last change.
(send_dg): Align here as well.

2008-10-31 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
return value in case rlimit is RLIM_INFINITY.

[BZ #6947]
* sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
for UL_SETFSIZE.
* resource/Makefile (tests): Add bug-ulimit1.
* resource/bug-ulimit1.c: New file.

[BZ #6974]
* sunrpc/rpc_main.c (mkfile_output): Properly handle filename
without dot. Properly terminate the string with a null byte.
Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.

[BZ #6980]
* debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
negative sizees.
* posix/bits/unistd.h (getgroups): Call __getgroups_chk for
negative __size.

[BZ #6995]
* sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.

2008-10-30 Ulrich Drepper <drepper@redhat.com>

* grp/initgroups.c (internal_getgrouplist): Don't prematurely
abort if there is no initgroups_dyn function.

* resolv/res_send.c (send_dg): On timeout, only return nonzero
result if any of the queries really provided an answer.

2008-10-28 Ulrich Drepper <drepper@redhat.com>

* po/lt.po: Update from translation team.
Expand Down
8 changes: 7 additions & 1 deletion debug/getgroups_chk.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2005 Free Software Foundation, Inc.
/* Copyright (C) 2005, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -23,6 +23,12 @@
int
__getgroups_chk (int size, __gid_t list[], size_t listlen)
{
if (__builtin_expect (size < 0, 0))
{
__set_errno (EINVAL);
return -1;
}

if (__builtin_expect (size * sizeof (__gid_t) > listlen, 0))
__chk_fail ();

Expand Down
10 changes: 9 additions & 1 deletion elf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
restest2 next dblload dblunload reldep5 reldep6 reldep7 reldep8 \
circleload1 tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 tst-tls8 \
tst-tls10 tst-tls11 tst-tls12 tst-tls13 tst-tls14 tst-tls15 \
tst-tls16 tst-tls17 tst-tls-dlinfo \
tst-tls16 tst-tls17 tst-tls18 tst-tls-dlinfo \
tst-align tst-align2 $(tests-execstack-$(have-z-execstack)) \
tst-dlmodcount tst-dlopenrpath tst-deep1 \
tst-dlmopen1 tst-dlmopen2 tst-dlmopen3 \
Expand All @@ -182,6 +182,7 @@ tests: $(objpfx)tst-pie1.out
endif
tests: $(objpfx)tst-leaks1-mem
tlsmod17a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
tlsmod18a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
testobj1_1 failobj constload2 constload3 unloadmod \
dep1 dep2 dep3 dep4 vismod1 vismod2 vismod3 \
Expand All @@ -203,6 +204,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
tst-tlsmod15a tst-tlsmod15b tst-tlsmod16a tst-tlsmod16b \
$(patsubst %,tst-tlsmod17a%,$(tlsmod17a-suffixes)) \
tst-tlsmod17b \
$(patsubst %,tst-tlsmod18a%,$(tlsmod18a-suffixes)) \
circlemod1 circlemod1a circlemod2 circlemod2a \
circlemod3 circlemod3a \
reldep8mod1 reldep8mod2 reldep8mod3 \
Expand Down Expand Up @@ -724,6 +726,12 @@ $(patsubst %,$(objpfx)tst-tlsmod17a%.os,$(tlsmod17a-suffixes)): $(objpfx)tst-tls
$(patsubst %,$(objpfx)tst-tlsmod17a%.so,$(tlsmod17a-suffixes)): $(objpfx)tst-tlsmod17a%.so: $(objpfx)ld.so
$(objpfx)tst-tlsmod17b.so: $(patsubst %,$(objpfx)tst-tlsmod17a%.so,$(tlsmod17a-suffixes))

$(objpfx)tst-tls18: $(libdl)
$(objpfx)tst-tls18.out: $(patsubst %,$(objpfx)tst-tlsmod18a%.so,$(tlsmod18a-suffixes))
$(patsubst %,$(objpfx)tst-tlsmod18a%.os,$(tlsmod18a-suffixes)): $(objpfx)tst-tlsmod18a%.os : tst-tlsmod18a.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ -DN=$* -DNOT_IN_libc=1 $<
$(patsubst %,$(objpfx)tst-tlsmod18a%.so,$(tlsmod18a-suffixes)): $(objpfx)tst-tlsmod18a%.so: $(objpfx)ld.so

CFLAGS-tst-align.c = $(stack-align-test-flags)
CFLAGS-tst-align2.c = $(stack-align-test-flags)
CFLAGS-tst-alignmod.c = $(stack-align-test-flags)
Expand Down
5 changes: 4 additions & 1 deletion elf/dl-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ __tls_get_addr (GET_ADDR_ARGS)
void *p;

if (__builtin_expect (dtv[0].counter != GL(dl_tls_generation), 0))
the_map = _dl_update_slotinfo (GET_ADDR_MODULE);
{
the_map = _dl_update_slotinfo (GET_ADDR_MODULE);
dtv = THREAD_DTV ();
}

p = dtv[GET_ADDR_MODULE].pointer.val;

Expand Down
37 changes: 37 additions & 0 deletions elf/tst-tls18.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include <dlfcn.h>
#include <stdio.h>

static int
do_test (void)
{
char modname[sizeof "tst-tlsmod18aXX.so"];
void *h[20];
for (int i = 0; i < 20; i++)
{
snprintf (modname, sizeof modname, "tst-tlsmod18a%d.so", i);
h[i] = dlopen (modname, RTLD_LAZY);
if (h[i] == NULL)
{
printf ("unexpectedly failed to open %s", modname);
exit (1);
}
}

for (int i = 0; i < 20; i++)
{
int (*fp) (void) = (int (*) (void)) dlsym (h[i], "test");
if (fp == NULL)
{
printf ("cannot find test in tst-tlsmod18a%d.so", i);
exit (1);
}

if (fp ())
exit (1);
}

return 0;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
21 changes: 21 additions & 0 deletions elf/tst-tlsmod18a.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <stdio.h>

#ifndef N
# define N 0
#endif

static __thread int var = 4;

int
test (void)
{
int *p = &var;
/* GCC assumes &var is never NULL, add optimization barrier. */
asm volatile ("" : "+r" (p));
if (p == NULL || *p != 4)
{
printf ("fail %d %p\n", N, p);
return 1;
}
return 0;
}
4 changes: 2 additions & 2 deletions fedora/branch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ glibc-branch := fedora
glibc-base := HEAD
DIST_BRANCH := devel
COLLECTION := dist-f8
fedora-sync-date := 2008-10-28 15:33 UTC
fedora-sync-tag := fedora-glibc-20081028T1533
fedora-sync-date := 2008-10-31 21:02 UTC
fedora-sync-tag := fedora-glibc-20081031T2102
13 changes: 10 additions & 3 deletions fedora/glibc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Summary: The GNU libc libraries
Name: glibc
Version: @glibcversion@
Release: 15
Release: 16
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
Expand Down Expand Up @@ -984,11 +984,18 @@ rm -f *.filelist*
%endif

%changelog
* Fri Oct 31 2008 Jakub Jelinek <jakub@redhat.com> 2.8.90-16
- update from trunk
- further resolver fixes
- another dynamic TLS handling fix (#469263)
- misc fixes (BZ#6867, BZ#6875, BZ#6919, BZ#6920, BZ#6942, BZ#6947,
BZ#6968, BZ#6974, BZ#6980, BZ#6995)
- rebuild with newer rpm to avoid stripping
shared libraries when they shouldn't be (#468129)

* Tue Oct 28 2008 Jakub Jelinek <jakub@redhat.com> 2.8.90-15
- update from trunk
- __libc_res_nquery fixes (#466786)
- try to workaround recent rpm changes which now strip glibc
shared libraries when they shouldn't (#468129)

* Sun Oct 19 2008 Jakub Jelinek <jakub@redhat.com> 2.8.90-14
- update from trunk
Expand Down
11 changes: 3 additions & 8 deletions grp/initgroups.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1989,91,93,1996-2005,2006 Free Software Foundation, Inc.
/* Copyright (C) 1989,91,93,1996-2005,2006,2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -94,13 +94,8 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
fct = __nss_lookup_function (nip, "initgroups_dyn");

if (fct == NULL)
{
status = compat_call (nip, user, group, &start, size, groupsp,
limit, &errno);

if (nss_next_action (nip, NSS_STATUS_UNAVAIL) != NSS_ACTION_CONTINUE)
break;
}
status = compat_call (nip, user, group, &start, size, groupsp,
limit, &errno);
else
status = DL_CALL_FCT (fct, (user, group, &start, size, groupsp,
limit, &errno));
Expand Down
3 changes: 2 additions & 1 deletion iconvdata/gconv-modules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GNU libc iconv configuration.
# Copyright (C) 1997-2004, 2005, 2007 Free Software Foundation, Inc.
# Copyright (C) 1997-2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -395,6 +395,7 @@ alias ISO885915// ISO-8859-15//
alias ISO-IR-203// ISO-8859-15//
alias ISO_8859-15// ISO-8859-15//
alias LATIN-9// ISO-8859-15//
alias LATIN9// ISO-8859-15//
alias ISO_8859-15:1998// ISO-8859-15//
module ISO-8859-15// INTERNAL ISO8859-15 1
module INTERNAL ISO-8859-15// ISO8859-15 1
Expand Down
Loading

0 comments on commit c02fa54

Please sign in to comment.