www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/01/00:28:23

Message-Id: <s200d9a8.083@MAIL.TAIT.CO.NZ>
Date: Thu, 01 Aug 1996 16:23:25 +1200
From: Bill Currie <bill_currie AT MAIL DOT TAIT DOT CO DOT NZ>
To: djgpp AT delorie DOT com
Subject: Re: __attribute__((section))

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.  The linker script
and startup code is another matter of course.

---------------cut----------------
#define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME)\
  do {						\
    fprintf (FILE, "\t.section %s\n", NAME);	\
  } while (0)
---------------cut----------------

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).

Bill


- Raw text -


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