summaryrefslogtreecommitdiff
path: root/gcc/config/mips/netbsd.h
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-01-08 23:27:06 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-01-08 23:27:06 +0000
commite067c639ab3a9c6320cb6806eec47258a21cdcd4 (patch)
tree00d49514921ce87a890176034cf431a03cbc45c0 /gcc/config/mips/netbsd.h
parent4df39ffd6ca00357bb1748ce1249d4e96bb953ca (diff)
downloadgcc-e067c639ab3a9c6320cb6806eec47258a21cdcd4.tar.gz
(LINK_SPEC): Change nostdlib to nostartfiles.
(LOCAL_LABEL_PREFIX): Delete. (ASM_OUTPUT_SECTION_NAME): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/netbsd.h')
-rw-r--r--gcc/config/mips/netbsd.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/gcc/config/mips/netbsd.h b/gcc/config/mips/netbsd.h
index f5ca028bdf6..146aec1fee5 100644
--- a/gcc/config/mips/netbsd.h
+++ b/gcc/config/mips/netbsd.h
@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */
#undef LINK_SPEC
#define LINK_SPEC \
"%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
- %{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{static:-Bstatic} %{assert*}"
+ %{!nostartfiles:%{!r*:%{!e*:-e __start}}} -dc -dp %{static:-Bstatic} %{assert*}"
/* We have atexit(3). */
@@ -103,8 +103,6 @@ Boston, MA 02111-1307, USA. */
#define TARGET_DEFAULT MASK_GAS
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-#define LOCAL_LABEL_PREFIX "."
-
#include "mips/mips.h"
/*
@@ -227,7 +225,23 @@ do { \
} \
} while (0)
+/*
+ A C statement to output something to the assembler file to switch to section
+ NAME for object DECL which is either a FUNCTION_DECL, a VAR_DECL or
+ NULL_TREE. Some target formats do not support arbitrary sections. Do not
+ define this macro in such cases.
+*/
+#define ASM_OUTPUT_SECTION_NAME(F, DECL, NAME) \
+do { \
+ extern FILE *asm_out_text_file; \
+ if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL) \
+ fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
+ else if ((DECL) && TREE_READONLY (DECL)) \
+ fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
+ else \
+ fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
+} while (0)
+
/* Since gas and gld are standard on NetBSD, we don't need these */
#undef ASM_FINAL_SPEC
#undef STARTFILE_SPEC
-