diff options
Diffstat (limited to 'gcc/config/sparc/sunos4.h')
-rw-r--r-- | gcc/config/sparc/sunos4.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/sparc/sunos4.h b/gcc/config/sparc/sunos4.h index c7bcaad12c4..fd108e85db8 100644 --- a/gcc/config/sparc/sunos4.h +++ b/gcc/config/sparc/sunos4.h @@ -20,3 +20,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define SUNOS4_SHARED_LIBRARIES 1 #include "sparc/sparc.h" + +/* If we're using GNU as and ld, we support weak symbols. */ + +#define HANDLE_PRAGMA_WEAK flag_gnu_linker +#define WEAK_ASM_OP ".weak" +#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \ + do { if (flag_gnu_linker) \ + { \ + fprintf ((FILE), "\t%s\t", ".set"); \ + assemble_name (FILE, LABEL1); \ + fprintf (FILE, ","); \ + assemble_name (FILE, LABEL2); \ + fprintf (FILE, "\n"); \ + } \ + } while (0) |