Browse Source

Cygwin: drop macro and code for CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
topic/split_source_dir
Corinna Vinschen 4 years ago
parent
commit
12360f10ff
  1. 3
      winsup/cygwin/include/cygwin/version.h
  2. 2
      winsup/cygwin/pseudo-reloc.cc

3
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)

2
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

Loading…
Cancel
Save