From: Martin Str|mberg Message-Id: <200009281751.TAA20261@father.ludd.luth.se> Subject: Re: (fwd) startup-code In-Reply-To: from Eli Zaretskii at "Sep 26, 2000 04:18:19 pm" To: djgpp-workers AT delorie DOT com Date: Thu, 28 Sep 2000 19:51:36 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Eli Zaretskii: > This is a separate problem that existed all the time. We could decide to > change mcount.c to eliminate this problem, but that has nothing to do with > testing whether PROVIDE works. For the latter, leaving mcount.c > unmodified, for as long as you test PROVIDE, is better. Ok. It's been tested. Compiling ar for profiling went ok and execution of it (on my 386) went well as well. So I suggest we change lib/djgpp.djl to: "OUTPUT_FORMAT("coff-go32") ENTRY(start) SECTIONS { .text 0x1000+SIZEOF_HEADERS : { *(.text) *(.gnu.linkonce.t*) *(.gnu.linkonce.r*) etext = . ; PROVIDE(_etext = .); . = ALIGN(0x200); } .data ALIGN(0x200) : { djgpp_first_ctor = . ; *(.ctor) djgpp_last_ctor = . ; djgpp_first_dtor = . ; *(.dtor) djgpp_last_dtor = . ; *(.data) *(.gnu.linkonce.d*) *(.gcc_exc*) ___EH_FRAME_BEGIN__ = . ; *(.eh_fram*) ___EH_FRAME_END__ = . ; LONG(0) edata = . ; PROVIDE(_edata = .); . = ALIGN(0x200); } .bss SIZEOF(.data) + ADDR(.data) : { _object.2 = . ; . += 24 ; *(.bss) *(COMMON) end = . ; PROVIDE(_end = .); . = ALIGN(0x200); } }" Right, MartinS