aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aoutos.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/aoutos.h')
-rw-r--r--gcc/config/aoutos.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/aoutos.h b/gcc/config/aoutos.h
index b398965e7ad..f7bfc905982 100644
--- a/gcc/config/aoutos.h
+++ b/gcc/config/aoutos.h
@@ -85,3 +85,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
fputc ('\n', FILE); \
} \
} while (0)
+
+/* 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)