delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/15/16:25:17

From: ian AT cygnus DOT com
Subject: Re: Section attributes from ld
15 Jul 1997 16:25:17 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199707152216.SAA07402.cygnus.gnu-win32@tweedledumb.cygnus.com>
References: <199707151105 DOT MAA14711 AT zaphod DOT long DOT harlequin DOT co DOT uk>
Original-To: jont AT harlequin DOT co DOT uk
Original-CC: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

>How does ld determine which attributes sections are to have? By
>attributes, I mean things like:-

>Contains code, contains initialised data, should be laoded with
>execute permission, should be loaded with read permission, should be
>loaded with write permission etc.

The attributes are based on the attributes of the input sections which
are mapped into the output sections.  Take a look at
gas/config/obj-coff.c to see how to use the .section directive in an
assembler file.

Ian
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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