[newlib-cygwin] Cygwin: drop macro and code for CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL

Corinna Vinschen corinna@sourceware.org
Wed Aug 3 14:06:20 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=12360f10ff4228288491d611c6897ee0f3781acc

commit 12360f10ff4228288491d611c6897ee0f3781acc
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Aug 3 16:01:29 2022 +0200

    Cygwin: drop macro and code for CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/include/cygwin/version.h | 3 ---
 winsup/cygwin/pseudo-reloc.cc          | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index c6ac40aae..c8b19fc09 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -34,9 +34,6 @@ details. */
 #define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
   CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
 
-#define CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL(u) \
-  (CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (u) >= 227)
-
 #define CYGWIN_VERSION_CHECK_FOR_EXTRA_TM_MEMBERS \
   (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 272)
 
diff --git a/winsup/cygwin/pseudo-reloc.cc b/winsup/cygwin/pseudo-reloc.cc
index d015cc5e7..5a0eab936 100644
--- a/winsup/cygwin/pseudo-reloc.cc
+++ b/winsup/cygwin/pseudo-reloc.cc
@@ -363,7 +363,7 @@ do_pseudo_reloc (void * start, void * end, void * base)
 extern "C" void
 _pei386_runtime_relocator (per_process *u)
 {
-  if (u && CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL (u))
+  if (u)
     do_pseudo_reloc (u->pseudo_reloc_start, u->pseudo_reloc_end, u->image_base);
 }
 #else


More information about the Cygwin-cvs mailing list