acadia-newlib/winsup
Corinna Vinschen 582628d551 Revert "Cygwin: Make sure newer apps get uname_x even when loading uname dynamically"
This reverts commit 532b91d24e.

It turned out that this patch has undesired side effects.  To wit, if a
newer, post-uname_x executable was linked against or loading an older,
pre-uname_x DLL, and this DLL called uname.  This call would jump into
the old uname with the old struct utsname as parameter, but given the
newer executable it would get redirected to uname_x.  uname_x in turn
would overwrite stack memory it should leave well alone, given it
expects the newer, larger struct utsname.

For the entire discussion see the thread starting at
https://cygwin.com/pipermail/cygwin/2021-February/247870.html
and continuing in March at
https://cygwin.com/pipermail/cygwin/2021-March/247930.html
For a description where we're coming from, see
https://cygwin.com/pipermail/cygwin/2021-March/247959.html

While we *could* make the scenario in question work by patching dlsym,
the problem would actually be the same, just for dynamic loading.  In
the end, we're missing the information, which Cygwin version has been
used when building DLLs.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-03-08 10:33:30 +01:00
..
CVSChangeLogs.old
cygserver Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
cygwin Revert "Cygwin: Make sure newer apps get uname_x even when loading uname dynamically" 2021-03-08 10:33:30 +01:00
doc Cygwin: Add console fix regarding Ctrl-Z etc. to release notes. 2021-02-19 17:58:15 +01:00
testsuite Cygwin: testsuite: libltp: fix warnings showing up with -Wall 2020-12-02 14:12:56 +01:00
utils Cygwin: Fix remaining warnings building path testsuite 2020-12-02 15:31:58 +00:00
CONTRIBUTORS Cygwin: Add Ben Wijen to list of contributors 2021-01-18 12:01:19 +01:00
COPYING
COPYING.LIB
CYGWIN_LICENSE
Makefile.common Cygwin: Remove nostdlib Makefile variable 2020-10-21 17:11:02 +01:00
Makefile.in Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
README
acinclude.m4 Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
aclocal.m4
autogen.sh Cygwin: Remove surplus autoconf auxiliary files 2020-11-20 15:56:21 +00:00
configure Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
configure.ac Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at https://cygwin.com
You might especially be interested in

https://cygwin.com/faq/faq.html#faq.programming.building-cygwin