[AD] proposed patch for nicer asm symbols exports |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
This simple patch makes the linker's life easier when dealing with
functions defined in .s files, by setting their type. It also lets
these functions be put in a shared library instead of alleg_unsharable.
(and in case you wonder, yes, my goal in life is to get totally rid of
alleg_unsharable).
Sam.
--
Sam Hocevar <sam@xxxxxxxxxx> <http://sam.zoy.org/>
Racism is so gay! How could you ever be racist?
Index: src/i386/asmdef.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/i386/asmdef.c,v
retrieving revision 1.19
diff -u -r1.19 asmdef.c
--- src/i386/asmdef.c 30 Mar 2004 07:02:13 -0000 1.19
+++ src/i386/asmdef.c 4 Aug 2004 08:38:18 -0000
@@ -236,7 +236,7 @@
#ifdef ALLEGRO_WATCOM
{"#define FUNC(name) .globl " PREFIX "name ; nop ; _align_ ; " PREFIX "name:", 0},
#else
- {"#define FUNC(name) .globl " PREFIX "name ; _align_ ; " PREFIX "name:", 0},
+ {"#define FUNC(name) .globl " PREFIX "name ; _align_ ; .type name,@function ; " PREFIX "name:", 0},
#endif
{"#define GLOBL(name) " PREFIX "name", 0},
{"NEWLINE", 0},