Xref: news2.mv.net comp.os.msdos.djgpp:6773 From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: Re: __attribute__((section)) Date: Sat, 03 Aug 1996 15:01:37 GMT Lines: 41 Message-ID: <839084382.8973.3@abwillms.demon.co.uk> References: <199608011257 DOT IAA07674 AT delorie DOT com> NNTP-Posting-Host: abwillms.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp DJ Delorie wrote: >> I haven't looked and the linker script or the startup code, but I >> have just got gcc to accept __attribute__((section))!!! All that's >> needed is to include the macro below in (gcc >> source)configure/i386/go32.h and rebuild. >Patches to gcc must be submitted to the FSF; I cannot do that on >someone else's behalf. Surely the GO32 target bit is your responsibility, though, DJ? It's not really a change to the core of GCC, merely the DJGPP bits. >> DJ, how do I configure properly to build cc1plus? I had to hack the >> makefiles by hand to get it to work (cc1 and cc1obj were nicely >> automatic). I tried the above patch, compiled it, and got my locked section thing (I've posted it to the group somewhere) to work using the LOCKED_VAR and LOCKED_FUNC 'attributes', defining a few LOCKED_VARs and a LOCKED_FUNC and calling them etc. Is there a way to tell if they've actually been locked? If I can prove that it is locking what it should, I'd like to put it forward as a feature for the next DJGPP release, if The Experts want it; GCC capable of producing custom sections, the DJGPP.LNK I made or something in a similar spirit, the LOCKED_* defines from sect.cc, and the inclusion of the locking function in crt1.c Regards, ABW -- I have become... Comfortably numb... Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk http://www.hardcafe.co.uk/Alaric/