diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-03 12:02:53 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-03 12:02:53 -0400 |
commit | 39d53d04357606a15efd400147fa7369d71baf2c (patch) | |
tree | fd46aa00b5dff9df14057a26024f87d7c326f052 /sim/bfin | |
parent | 46039d3632e32d9a404c1f18cf55f14c894e4627 (diff) | |
download | fsf-binutils-gdb-39d53d04357606a15efd400147fa7369d71baf2c.zip fsf-binutils-gdb-39d53d04357606a15efd400147fa7369d71baf2c.tar.gz fsf-binutils-gdb-39d53d04357606a15efd400147fa7369d71baf2c.tar.bz2 |
sim: filter out SIGSTKSZ [PR sim/28302]
We map target signals to host signals so we can propagate signals
between the host & simulated worlds. That means we need to know
the symbolic names & values of all signals that might be sent.
The tools that generate that list use signal.h and include all
symbols that start with "SIG" so as to automatically include any
new symbols that the C library might add. Unfortunately, this
also picks up "SIGSTKSZ" which is not actually a signal itself,
but a signal related setting -- it's the size of the stack when
a signal is handled.
By itself this doesn't super matter as we will never see a signal
with that same value (since the range of valid signals tend to be
way less than 1024, and the size of the default signal stack will
never be that small). But with recent glibc changes that make this
into a dynamic value instead of a compile-time constant, some users
see build failures when building the sim.
As suggested by Adam Sampson, update our scripts to ignore this
symbol to simplify everything and avoid the build failure.
Bug: https://sourceware.org/PR28302
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/linux-targ-map.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/bfin/linux-targ-map.h b/sim/bfin/linux-targ-map.h index e9c8c8f..0340ed547 100644 --- a/sim/bfin/linux-targ-map.h +++ b/sim/bfin/linux-targ-map.h @@ -30,6 +30,7 @@ echo # XXX: nothing uses this ? echo '#include <signal.h>' | \ bfin-uclinux-gcc -E -dD -P - | \ +grep -v SIGSTKSZ | \ sed -r -n \ -e '1istatic CB_TARGET_DEFS_MAP cb_linux_signal_map[] = {' \ -e '$i\ \ { 0, -1, -1 }\n};' \ @@ -1988,9 +1989,5 @@ static CB_TARGET_DEFS_MAP cb_linux_signal_map[] = # define TARGET_LINUX_SIG_SETMASK 2 { "SIG_SETMASK", SIG_SETMASK, TARGET_LINUX_SIG_SETMASK }, #endif -#ifdef SIGSTKSZ -# define TARGET_LINUX_SIGSTKSZ 8192 - { "SIGSTKSZ", SIGSTKSZ, TARGET_LINUX_SIGSTKSZ }, -#endif { 0, -1, -1 } }; |