Re: [AD] proposed patch for nicer asm symbols exports

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wednesday 04 August 2004 12:08, Sam Hocevar wrote:
> > This part seems to go for DOS and Windows, as well as Unix, yes? The 
> > COFF object format won't like the .type construct there like that and 
> > possibly break compilation.
> 
>    Ah, then here is my second try. Only uses .type when using GCC.

DJGPP (on DOS) and MinGW (on Windows) are GCC compilers too, and they are 
needed to help building ports for other compilers on DOS and Windows 
because of the assmbler.

I think I'm going to apply the following modified patch instead:

  #endif
  #ifdef ALLEGRO_WATCOM
    {"#define FUNC(name)            .globl " PREFIX "name ; nop ; _align_ ; 
" PREFIX "name:", 0},
+ #elif defined ALLEGRO_UNIX
+   {"#define FUNC(name)            .globl " PREFIX "name ; _align_ ; .type 
name,@function ; " PREFIX "name:", 0},
  #else
    {"#define FUNC(name)            .globl " PREFIX "name ; _align_ ; " 
PREFIX "name:", 0},
  #endif

Evert





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/