delorie.com/archives/browse.cgi | search |
From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
Message-Id: | <9803221510.AA14879@clio.rice.edu> |
Subject: | Re: Can the text section be made read-only? |
To: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
Date: | Sun, 22 Mar 1998 09:10:24 -0600 (CST) |
Cc: | eldredge AT ap DOT net, cssl AT geocities DOT com, djgpp-workers AT delorie DOT com |
In-Reply-To: | <Pine.SUN.3.91.980322160644.12221O-100000@is> from "Eli Zaretskii" at Mar 22, 98 04:07:03 pm |
> I believe adding .data is not enough. ... > Charles, am I right here? You are correct about adding .data not being quite enough (there also needs to be a corresponding lock call and determine the size of each locked section properly) - but not the reason with the DS alias. We have a flat address space so CS = DS (as far as base address) So the sections only matter to the linker as far as where it puts the variables/code.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |