From 1a2df358c8b1bc40035e30fe12cc4187655dd326 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 12 Jun 1995 18:26:02 +0000 Subject: Mon Jun 12 13:15:45 1995 Roland McGrath * Makerules (lib%.so: lib%_pic.a): Moved this rule to after installation rules. * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so it uses the `.type' directive, which is necessary for shared libraries to work properly. --- sysdeps/mach/sysdep.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/mach/sysdep.h b/sysdeps/mach/sysdep.h index 9a8dbd5163..d5d370efd0 100644 --- a/sysdeps/mach/sysdep.h +++ b/sysdeps/mach/sysdep.h @@ -28,6 +28,17 @@ Cambridge, MA 02139, USA. */ #define EXT(x) C_SYMBOL_NAME(x) #define LEXT(x) C_SYMBOL_NAME(x##:) +#ifdef HAVE_ELF +/* For ELF we need to add the `.type' directive to make shared libraries + work right. */ +#undef ENTRY +#define ENTRY(name) \ + ASM_GLOBAL_DIRECTIVE name; \ + .align ALIGN; \ + .type name,@function; \ + name: +#endif + #endif /* This is invoked by things run when there is random lossage, before they -- cgit 1.4.1