delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/22/03:44:06

Sender: bill AT taniwha DOT tssc DOT co DOT nz
Message-ID: <3514CE63.8B1E1359@taniwha.tssc.co.nz>
Date: Sun, 22 Mar 1998 20:40:04 +1200
From: Bill Currie <bill AT taniwha DOT tssc DOT co DOT nz>
MIME-Version: 1.0
To: Nate Eldredge <eldredge AT ap DOT net>, Charles Sandmann <sandmann AT clio DOT rice DOT edu>,
cssl AT geocities DOT com, djgpp-workers AT delorie DOT com
Subject: Re: Can the text section be made read-only?
References: <199803220136 DOT RAA16736 AT adit DOT ap DOT net> <3514BFA5 DOT DA9A1E70 AT taniwha DOT tssc DOT co DOT nz>

Bill Currie wrote:
> As to the locking issue, now that my ASM_OUTPUT_SECTION_NAME patch to
> go32.h is in mainstream gcc (2.8.1 definitely, don't know about 2.8.0),
> can I suggest using .ltext and .ldata sections (and supporting them in
> mainstream DJGPP) as originally suggestion by Alaric Williams?  Support
> in DJGPP is as simple as a couple of additional lines to the linker
> scripts (this MAY cause problems with Roberts efforts with binutils) as
> per the attached patch.

I just remebered one flaw in this:  even binutils 2.8.1 has a bug in gas
where it doesn't get relocations right when using non .text code
sections.  However, this bug has been fixed sometime befor binutils
2.8.0.15.

Bill
-- 
Leave others their otherness.

- Raw text -


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