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 MIME-Version: 1.0 To: Nate Eldredge , Charles Sandmann , 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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.