Skip to content

Commit

Permalink
aarch64: Increase MINSIGSTKSZ and SIGSTKSZ (bug 16850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Apr 2, 2015
1 parent c26efef commit b763f6a
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-04-02 Andreas Schwab <schwab@suse.de>

[BZ #16850]
* sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.

2015-04-02 Mel Gorman <mgorman@suse.de>

[BZ #17195]
Expand Down
12 changes: 6 additions & 6 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Version 2.22
* The following bugs are resolved with this release:

4719, 13064, 14094, 14841, 14906, 15319, 15467, 15790, 15969, 16351,
16512, 16560, 16783, 17090, 17195, 17269, 17523, 17542, 17569, 17588,
17620, 17621, 17628, 17631, 17711, 17776, 17779, 17792, 17836, 17912,
17916, 17932, 17944, 17949, 17964, 17965, 17967, 17969, 17978, 17987,
17991, 17996, 17998, 17999, 18019, 18020, 18029, 18030, 18032, 18036,
18038, 18039, 18042, 18043, 18046, 18047, 18068, 18080, 18093, 18100,
18104, 18110, 18111, 18128, 18138, 18185.
16512, 16560, 16783, 16850, 17090, 17195, 17269, 17523, 17542, 17569,
17588, 17620, 17621, 17628, 17631, 17711, 17776, 17779, 17792, 17836,
17912, 17916, 17932, 17944, 17949, 17964, 17965, 17967, 17969, 17978,
17987, 17991, 17996, 17998, 17999, 18019, 18020, 18029, 18030, 18032,
18036, 18038, 18039, 18042, 18043, 18046, 18047, 18068, 18080, 18093,
18100, 18104, 18110, 18111, 18128, 18138, 18185.

* A powerpc and powerpc64 optimization for TLS, similar to TLS descriptors
for LD and GD on x86 and x86-64, has been implemented. You will need
Expand Down
54 changes: 54 additions & 0 deletions sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* sigstack, sigaltstack definitions.
Copyright (C) 2015 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
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#ifndef _SIGNAL_H
# error "Never include this file directly. Use <signal.h> instead"
#endif


/* Structure describing a signal stack (obsolete). */
struct sigstack
{
void *ss_sp; /* Signal stack pointer. */
int ss_onstack; /* Nonzero if executing on this stack. */
};


/* Possible values for `ss_flags.'. */
enum
{
SS_ONSTACK = 1,
#define SS_ONSTACK SS_ONSTACK
SS_DISABLE
#define SS_DISABLE SS_DISABLE
};

/* Minimum stack size for a signal handler. */
#define MINSIGSTKSZ 5120

/* System default stack size. */
#define SIGSTKSZ 16384


/* Alternate, preferred interface. */
typedef struct sigaltstack
{
void *ss_sp;
int ss_flags;
size_t ss_size;
} stack_t;

0 comments on commit b763f6a

Please sign in to comment.