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.26.9000-1154-gc739e19


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  c739e191d0697e29110d4eb446e537ff336324c6 (commit)
      from  394b5bac88ef678dcacadbc1f6b393a55308f616 (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=c739e191d0697e29110d4eb446e537ff336324c6

commit c739e191d0697e29110d4eb446e537ff336324c6
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Mon Jan 22 11:13:31 2018 +0000

    aarch64: Revert the change of the __reserved member of mcontext_t
    
    The uc_mcontext.__reserved member of ucontext_t is a user visible API,
    that should not be changed, because this is the only way to access cpu
    states of various extensions of linux asm/sigcontext.h, it does not
    violate namespace rules either, so revert this part of the commit
    
    commit 4fa9b3bfe6759c82beb4b043a54a3598ca467289
    Commit:     Joseph Myers <joseph@codesourcery.com>
    
        Fix mcontext_t sigcontext namespace (bug 21457).
    
    (In principle the user can type cast &uc_mcontext to struct sigcontext*
    to use the linux sigcontext fields, but that's not the existing practice
    since mcontext_t used to be a typedef of struct sigcontext.)
    
    	[BZ #22742]
    	* sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
    	Rename to __reserved and add comment.
    	* sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
    	Rename to __reserved.

diff --git a/ChangeLog b/ChangeLog
index 53a88a1..0f5f959 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+	[BZ #22742]
+	* sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
+	Rename to __reserved and add comment.
+	* sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
+	Rename to __reserved.
+
 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
 
 	* scripts/build-many-glibcs.py (Context.add_all_configs): Add
diff --git a/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h b/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
index fe72fdd..f1b3ab5 100644
--- a/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
@@ -56,7 +56,11 @@ typedef struct
     unsigned long long int __ctx(sp);
     unsigned long long int __ctx(pc);
     unsigned long long int __ctx(pstate);
-    unsigned char __glibc_reserved1[4096] __attribute__ ((__aligned__ (16)));
+    /* This field contains extension records for additional processor
+       state such as the FP/SIMD state.  It has to match the definition
+       of the corresponding field in the sigcontext struct, see the
+       arch/arm64/include/uapi/asm/sigcontext.h linux header for details.  */
+    unsigned char __reserved[4096] __attribute__ ((__aligned__ (16)));
   } mcontext_t;
 
 /* Userlevel context.  */
diff --git a/sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym b/sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym
index 479bdda..ab3930c 100644
--- a/sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym
+++ b/sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym
@@ -38,7 +38,7 @@ oX0				mcontext (regs)
 oSP				mcontext (sp)
 oPC				mcontext (pc)
 oPSTATE				mcontext (pstate)
-oEXTENSION                      mcontext (__glibc_reserved1)
+oEXTENSION                      mcontext (__reserved)
 
 #define fpsimd_context(member)  offsetof (struct fpsimd_context, member)
 

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

Summary of changes:
 ChangeLog                                      |    8 ++++++++
 sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h |    6 +++++-
 sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym |    2 +-
 3 files changed, 14 insertions(+), 2 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]