Mail Archives: djgpp/1996/08/07/14:05:06
DJ Delorie <dj AT delorie DOT com> 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
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>
- Raw text -