OSDN Git Service

* arc.c (output_shift): Use stdio instead of asm_fprintf.
[pf3gnuchains/gcc-fork.git] / gcc / config / netbsd-elf.h
index 6e69e80..40ed3aa 100644 (file)
@@ -67,18 +67,22 @@ Boston, MA 02111-1307, USA.  */
 
 /* Provide a LINK_SPEC appropriate for NetBSD ELF.  Here we provide
    support for the special GCC options -assert, -R, -rpath, -shared,
-   -nostdlib, -static, -rdynamic, and -dynamic-linker.  */
-
-#undef LINK_SPEC
-#define LINK_SPEC                                                      \
-  "%{assert*} %{R*} %{rpath*}                                          \
-   %{shared:-shared}                                                   \
-   %{!shared:                                                          \
-     -dc -dp                                                           \
-     %{!nostdlib:                                                      \
-       %{!r*:                                                          \
-        %{!e*:-e __start}}}                                            \
-     %{!static:                                                                \
-       %{rdynamic:-export-dynamic}                                     \
-       %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}      \
+   -nostdlib, -static, -rdynamic, and -dynamic-linker.
+
+   Target-specific code can use this in conjunction with any other
+   target-specific LINK_SPEC options.
+
+   Target-specific code must provide the %(netbsd_entry_point) spec.  */
+
+#define NETBSD_LINK_SPEC_ELF \
+  "%{assert*} %{R*} %{rpath*} \
+   %{shared:-shared} \
+   %{!shared: \
+     -dc -dp \
+     %{!nostdlib: \
+       %{!r*: \
+        %{!e*:-e %(netbsd_entry_point)}}} \
+     %{!static: \
+       %{rdynamic:-export-dynamic} \
+       %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
      %{static:-static}}"