This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-73-ge4452a2


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  e4452a2d19279d4c90bcafe09ec3cbfd3efe9b6a (commit)
      from  499b315324519f8deb5b42a143a76319934a3ab0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e4452a2d19279d4c90bcafe09ec3cbfd3efe9b6a

commit e4452a2d19279d4c90bcafe09ec3cbfd3efe9b6a
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Feb 15 20:59:12 2018 +0000

    Use libc_hidden_* for __cmsg_nxthdr (bug 15105).
    
    Among other localplt test failures when building with -Os, there are
    libc.so PLT references for __cmsg_nxthdr.  This is a simple case of a
    function that is inlined for -O2 but not for -Os; this patch adds
    libc_hidden_proto / libc_hidden_def for it to avoid a localplt failure
    even when it is not inlined.
    
    Tested for x86_64 (both that it removes this particular localplt
    failure for -Os - but other such failures remain so the bug can't yet
    be closed - and that the testsuite continues to pass without -Os).
    
    	[BZ #15105]
    	* include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
    	libc_hidden_proto.
    	* sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
    	libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 36ee493..1d9e54b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #15105]
+	* include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
+	libc_hidden_proto.
+	* sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
+	libc_hidden_def.
+
+	[BZ #15105]
 	* include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
 	libc_hidden_proto.
 	* libio/iofputs.c (fputs): Use libc_hidden_weak.
diff --git a/include/sys/socket.h b/include/sys/socket.h
index baec6e6..26db0e0 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -154,5 +154,7 @@ libc_hidden_proto (__libc_sa_len)
 # define SA_LEN(_x)      __libc_sa_len((_x)->sa_family)
 #endif
 
+libc_hidden_proto (__cmsg_nxthdr)
+
 #endif
 #endif
diff --git a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
index fa0468e..bab0be6 100644
--- a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
+++ b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
@@ -37,3 +37,4 @@ __cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
     return NULL;
   return cmsg;
 }
+libc_hidden_def (__cmsg_nxthdr)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |    6 ++++++
 include/sys/socket.h                  |    2 ++
 sysdeps/unix/sysv/linux/cmsg_nxthdr.c |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]