[PATCH] sim: filter out SIGSTKSZ [PR sim/28302]

Aktemur, Tankut Baris tankut.baris.aktemur@intel.com
Tue Jan 11 15:14:16 GMT 2022


On Sunday, October 3, 2021 6:09 PM, Mike Frysinger wrote:
> 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

This patch fixes a build problem that may be seen with GDB 11.  Should
it be cherry-picked to gdb-11-branch to be included for the upcoming
11.2 release?

Thanks
-Baris


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



More information about the Gdb-patches mailing list