diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-16 06:14:00 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-04-16 06:14:00 +0000 |
commit | df1c860747bae5b5b29e7e6d2865b470811eeb84 (patch) | |
tree | 84e2fb5271a2abf2b906a48c8ee5704a2f8d7184 /gcc/config/sparc | |
parent | 2c4f9c67b38da6659189fb5242dcd20940213a15 (diff) |
attributes weak and alias
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc')
-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) |