www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/18/15:22:17

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: ld patch for cygwin32
18 Mar 1998 15:22:17 -0800 :
Message-ID: <199803182300.PAA03582.cygnus.cygwin32.developers@skaro.cygnus.com>
To: ian AT cygnus DOT com (Ian Lance Taylor)
Cc: noer AT cygnus DOT com (Geoffrey Noer), cygwin32-developers AT cygnus DOT com

Hi Ian,

The following patch is needed to get the development sources working
properly as far as Cygwin32 is concerned.  Commentary about this
change can be found on the main gnu-win32 list (look for ld).

I have successfully been using it for the last week and would like to
check it in.  Comments?

-- 
Geoffrey Noer
noer AT cygnus DOT com

------------------------------ snip ------------------------------

Index: ld/scripttempl/pe.sc
===================================================================
RCS file: /cvs/cvsfiles/devo/ld/scripttempl/pe.sc,v
retrieving revision 1.23
diff -c -p -r1.23 pe.sc
*** pe.sc	1998/02/23 22:48:25	1.23
--- pe.sc	1998/03/18 22:58:23
*************** SECTIONS
*** 37,42 ****
--- 37,43 ----
      *(.data2)
      ${RELOCATING+*(.data\$*)}
      ${RELOCATING+__data_end__ = . ;}
+     *(.data_cygwin_nocopy)
    }
  
    .bss ${RELOCATING+BLOCK(__section_alignment__)} :
Index: winsup/winsup.h
===================================================================
RCS file: /cvs/cvsfiles/devo/winsup/winsup.h,v
retrieving revision 1.96
diff -c -p -r1.96 winsup.h
*** winsup.h	1998/02/23 07:53:56	1.96
--- winsup.h	1998/03/18 22:58:23
*************** extern "C" class shared_info *cygwin32_g
*** 357,363 ****
  
  #define WM_ASYNCIO	0x8000		// WM_APP
  
! #define NO_COPY __attribute__((section(".data$nocopy")))
  
  /* Note that MAX_PATH is defined in the windows headers */
  /* There is also PATH_MAX and MAXPATHLEN.
--- 357,363 ----
  
  #define WM_ASYNCIO	0x8000		// WM_APP
  
! #define NO_COPY __attribute__((section(".data_cygwin_nocopy")))
  
  /* Note that MAX_PATH is defined in the windows headers */
  /* There is also PATH_MAX and MAXPATHLEN.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019