Skip to content

Commit

Permalink
Merge remote branch 'origin/master' into fedora/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Oct 30, 2009
2 parents f8e81ce + 3a83202 commit 017dd87
Show file tree
Hide file tree
Showing 123 changed files with 2,375 additions and 399 deletions.
254 changes: 254 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,257 @@
2009-10-30 Ulrich Drepper <drepper@redhat.com>

* misc/mkostemps.c: New file.
* misc/mkostemps64.c: New file.

2009-10-30 Andreas Schwab <schwab@redhat.com>

* locale/programs/locale-spec.c: Include <error.h> and
<libintl.h>.

* sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.

2009-10-28 Roland McGrath <roland@redhat.com>

* Makefile (dist-prepare): New target.
(tag-for-dist): Target removed.
(glibc-%.tar): Pattern rule removed.
(%.tar): New pattern rule, does simple use of git archive.
(dist-version): Remove variable definition.
(dist): Just depend on that. Add .tar.xz dependency.
If dist-version variable not set on command line, depend on
dist-prepare, re-invoke with dist-version set via git describe.

* Makerules (%.xz): New pattern rule.

2009-10-28 Alan Modra <amodra@bigpond.net.au>

* elf/ifuncdep2.c: Include ifunc-sel.h.
(global): Delete.
(foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
* elf/ifuncmain1.c (global): Delete.
* elf/ifuncmain1vis.c: Likewise.
* elf/ifuncmain2.c: Likewise.
* elf/ifuncmain5.c: Likewise.
* elf/ifuncmod3.c: Likewise.
* elf/ifuncmain6pie.c: Include ifunc-sel.h.
(foo_ifunc): Use ifunc_one.
* elf/ifuncmain7.c: Likewise.
* elf/ifuncmod1.c: Include ifunc-sel.h.
(global): Define protected var.
(foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
* elf/ifuncmod5.c: Likewise.
* sysdeps/generic/elf/ifunc-sel.h: New file.
* sysdeps/powerpc/elf/ifunc-sel.h: New file.

2009-07-30 Alan Modra <amodra@bigpond.net.au>

* elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
(R_PPC_REL16*): Correct comments.
(R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
(R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
R_PPC64_REL16_HA): Define.
* sysdeps/powerpc/powerpc32/dl-irel.h: New file.
* sysdeps/powerpc/powerpc64/dl-irel.h: New file.
* sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
Delete unused "reloc" param.
(__process_machine_rela): Handle R_PPC_IRELATIVE.
* sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
Delete "reloc" param.
(elf_machine_rela): Handle STT_GNU_IFUNC functions and
R_PPC_IRELATIVE.
* sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
(elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
relocations.

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

[BZ #10315]
* sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
UDP_ENCAP_L2TPINUDP.

[BZ #10349]
* sysdeps/posix/tempname.c (__gen_tempname): Take new second
parameter, specifying length of prefix.
* stdio-common/tempname.c: Likewise.
* include/stdio.h: Adjust prototypes.
* libio/oldtmpfile.c: Adjust caller.
* misc/mkdtemp.c: Likewise.
* misc/mkostemp.c: Likewise.
* misc/mkostemp64.c: Likewise.
* misc/mkstemp.c: Likewise.
* misc/mkstemp64.c: Likewise.
* misc/mktemp.c: Likewise.
* stdio-common/tempnam.c: Likewise.
* stdio-common/tmpfile.c: Likewise.
* stdio-common/tmpnam.c: Likewise.
* stdio-common/tmpnam_r.c: Likewise.
* misc/mkstemps.c: New file.
* misc/mkstemps64.c: New file.
* stdlib/stdlib.h: Add prototypes.
* misc/Makefile (routines): Add mkstemps and mkstemps64.
* misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.

2009-10-29 Ulrich Drepper <drepper@redhat.com>

* locale/iso-639.def: Add sml entry.

[BZ #10391]
* resolv/res_send.c (send_dg): Initialize resplen.

[BZ #10446]
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
definition to the kernel's.
* sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.

2009-08-18 Anders Johansson <ajohansson@novell.com>

* nscd/aicache.c: Fix mixing up dataset and dataset->resp
offsets and record sizes in assert()s and response sending.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/pwdcache.c: Likewise.

2009-10-29 Ulrich Drepper <drepper@redhat.com>

[BZ #10540]
* nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
/etc/hosts does not exist set errnop and herrnop appropriately.
Patch by Steve Langasek <vorlon@debian.org>.

[BZ #10553]
* malloc/malloc.c (malloc_info): Fix typos in format strings.
Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.

[BZ #10564]
* login/utmp_file.c (TIMEOUT): Increase to 10.

[BZ #10609]
* sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
for file names in case the syscall is not available.
* sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
* sysdeps/unix/sysv/linux/fchownat.c: Likewise.
* sysdeps/unix/sysv/linux/futimesat.c: Likewise.
* sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
* sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
* sysdeps/unix/sysv/linux/linkat.c: Likewise.
* sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
* sysdeps/unix/sysv/linux/openat.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
* sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
* sysdeps/unix/sysv/linux/renameat.c: Likewise.
* sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
* sysdeps/unix/sysv/linux/xmknodat.c: Likewise.

[BZ #10643]
* sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
creation filed, remove the request from the 'requests' list and signal
the caller that the request is finished.

[BZ #10692]
* nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.

[BZ #10713]
* nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
from intern.start. Patch by Joe Landers <jlanders@vmware.com>.

[BZ #10780]
* libio/ioputs.c (_IO_puts): Make sure to not return a number which
overflows the int return type.

[BZ #10717]
* malloc/memusagestat.c (main): Fix repairing of trace files. We also
have to compute maxsize_total, we have to update the variables, and
the also_total handling must happen after the repair.

[BZ #10742]
* nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
Based on patch by Jeffrey Bastian <jbastian@redhat.com>.

2009-10-27 Andreas Schwab <schwab@redhat.com>

* sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
errno is always set when returning unsuccessfully.

2009-10-29 Andreas Schwab <schwab@redhat.com>

* malloc/memusage.c (update_data): Fix index wraparound handling
so that buffer_cnt is actually reset.

2009-10-29 Ulrich Drepper <drepper@redhat.com>

[BZ #10784]
* sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
of the directory we look at into the static buffer if there is one
at the start of the loop.

[BZ #10789]
* sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.

[BZ #10840]
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_F_GETOWN_EX.
* sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
if possible.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.

* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
and f_owner_ex.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.

[BZ #10847]
* sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
getutmpx symbol.

[BZ #10823]
* resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
addresses. Patch by Petar Bogdanovic <petar@smokva.net>.

2009-10-24 Joseph Myers <joseph@codesourcery.com>

* sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).

2009-10-27 Jakub Jelinek <jakub@redhat.com>

[BZ #10817]
* math/w_coshl.c (__coshl): Use __finitel instead of __finite.
Reported by Ray Chason.

2009-10-21 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
strend-sse4.
* sysdeps/x86_64/multiarch/strchr.S: New file.
* sysdeps/x86_64/multiarch/strend-sse4.S: New file.
* sysdeps/x86_64/multiarch/strrchr.S: New file.

2009-10-21 Andreas Schwab <schwab@redhat.com>

* elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.

2009-10-19 Andreas Schwab <schwab@redhat.com>

* include/math.h: Add hidden protos for __exp/__expf/__expl.
* sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
* sysdeps/ieee754/flt-32/w_expf.c: Likewise.
* sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
* sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
* sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
* sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
__ieee751_expl to handle overflow.

2009-10-14 David S. Miller <davem@davemloft.net>

* sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
Expand Down
63 changes: 25 additions & 38 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,51 +347,38 @@ TAGS:
| $(ETAGS) -o $@ -

# Make the distribution tarfile.
.PHONY: dist tag-for-dist
.PHONY: dist dist-prepare

generated := $(generated) stubs.h

files-for-dist := README FAQ INSTALL NOTES configure

tag-of-stem = glibc-$(subst .,_,$*)
dist-selector = -r $(tag-of-stem)

# Add-ons in the main repository but distributed in their own tar files.
dist-separate = libidn

glibc-%.tar $(dist-separate:%=glibc-%-%.tar): $(files-for-dist) \
$(foreach D,$(dist-separate),\
$D/configure)
@rm -fr glibc-$*
$(MAKE) -q `find sysdeps $(addsuffix /sysdeps,$(sysdeps-add-ons)) \
-name configure`
cvs $(CVSOPTS) -Q export -d glibc-$* $(dist-selector) libc
# Touch all the configure scripts going into the tarball since cvs export
# might have delivered configure.in newer than configure.
find glibc-$* -name configure -print | xargs touch
$(dist-do-separate-dirs)
tar cf glibc-$*.tar glibc-$*
rm -fr glibc-$*
define dist-do-separate-dirs
$(foreach dir,$(dist-separate),
@rm -fr glibc-$(dir)-$*
mv glibc-$*/$(dir) glibc-$(dir)-$*
tar cf glibc-$(dir)-$*.tar glibc-$(dir)-$*
rm -fr glibc-$(dir)-$*
)
endef
files-for-dist := README FAQ INSTALL NOTES configure ChangeLog NEWS

# Regenerate stuff, then error if these things are not committed yet.
dist-prepare: $(files-for-dist)
conf=`find sysdeps $(addsuffix /sysdeps,$(sysdeps-add-ons)) \
-name configure`; \
$(MAKE) $$conf && \
git diff --stat HEAD -- $^ $$conf \
| $(AWK) '{ print; rc=1 } END { exit rc }'

%.tar: FORCE
git archive --prefix=$*/ $* > $@.new
mv -f $@.new $@

# Do `make dist dist-version=X.Y.Z' to make tar files of an older version.
dist-version = $(version)

dist: $(foreach Z,.bz2 .gz,glibc-$(dist-version).tar$Z \
$(foreach D,$(dist-separate),\
glibc-$D-$(dist-version).tar$Z))
ifneq (,$(strip $(dist-version)))
dist: $(foreach Z,.bz2 .gz .xz,$(dist-version).tar$Z)
md5sum $^

tag-for-dist: tag-$(dist-version)
tag-%: $(files-for-dist)
cvs $(CVSOPTS) -Q tag -c $(tag-of-stem)
else
dist: dist-prepare
@if v=`git describe`; then \
echo Distribution version $$v; \
$(MAKE) dist dist-version=$$v; \
else \
false; \
fi
endif

define format-me
@rm -f $@
Expand Down
3 changes: 2 additions & 1 deletion Makerules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 1991-2006, 2007, 2008 Free Software Foundation, Inc.
# Copyright (C) 1991-2006,2007,2008,2009 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 @@ -1335,6 +1335,7 @@ echo-headers:

%.bz2: %; bzip2 -9vk $<
%.gz: %; gzip -9vnc $< > $@.new && mv -f $@.new $@
%.xz: %; xz -9evk $<

# Common cleaning targets.

Expand Down
11 changes: 8 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GNU C Library NEWS -- history of user-visible changes. 2009-8-8
GNU C Library NEWS -- history of user-visible changes. 2009-10-29
Copyright (C) 1992-2008, 2009 Free Software Foundation, Inc.
See the end for copying conditions.

Expand All @@ -7,7 +7,8 @@ using `glibc' in the "product" field.

Version 2.11

* New interfaces: execvpe, pthread_sigqueue
* New interfaces: execvpe, pthread_sigqueue, mkstemps, mkstemps64, mkostemps,
mkostemps64
Implemented by Ulrich Drepper.

* Checking version of longjmp added that fails if an uninitialized stack
Expand All @@ -16,9 +17,11 @@ Version 2.11
* STT_GNU_IFUNC is now supported in static executables.
Implemented by H.J. Lu.

* STT_GNU_IFUNC implemented for PPC by Alan Modra.

* New optimized string functions for x86-64: strstr, strcasestr, memcmp,
strcspn, strpbrk, strspn, strcpy, stpcpy, strncpy, strcmp (SSE2, SSE4.2),
strncmp (SSE2, SSE4.2).
strncmp (SSE2, SSE4.2), strchr (SSE4.2), strrchr (SSE4.2).
Contributed by H.J. Lu.

strlen, rawmemchr, strcmp (SSSE3), strncmp (SSSE3).
Expand Down Expand Up @@ -55,6 +58,8 @@ Version 2.11
support for requeueing to PI futexes. NPTL support added for x86-64.
Implemented by Ulrich Drepper.

* New locale: ps_AF


Version 2.10

Expand Down
5 changes: 5 additions & 0 deletions elf/dl-sym.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ RTLD_NEXT used in code not dynamically loaded"));
#endif
value = DL_SYMBOL_ADDRESS (result, ref);

/* Resolve indirect function address. */
if (__builtin_expect (ELFW(ST_TYPE) (ref->st_info) == STT_GNU_IFUNC, 0))
value
= ((DL_FIXUP_VALUE_TYPE (*) (void)) DL_FIXUP_VALUE_ADDR (value)) ();

#ifdef SHARED
/* Auditing checkpoint: we have a new binding. Provide the
auditing libraries the possibility to change the value and
Expand Down
Loading

0 comments on commit 017dd87

Please sign in to comment.