OSDN Git Service

* pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
[pf3gnuchains/gcc-fork.git] / gcc / config / netbsd-aout.h
index 7111a70..99e8c3a 100644 (file)
@@ -1,23 +1,22 @@
 /* Common configuration file for NetBSD a.out targets.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2007 Free Software Foundation, Inc.
    Contributed by Wasabi Systems, Inc.
 
-This file is part of GNU CC.
+This file is part of GCC.
 
-GNU CC is free software; you can redistribute it and/or modify
+GCC is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
+the Free Software Foundation; either version 3, or (at your option)
 any later version.
 
-GNU CC is distributed in the hope that it will be useful,
+GCC is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
+along with GCC; see the file COPYING3.  If not see
+<http://www.gnu.org/licenses/>.  */
 
 /* TARGET_OS_CPP_BUILTINS() common to all NetBSD a.out targets.  */
 #define NETBSD_OS_CPP_BUILTINS_AOUT()          \
@@ -27,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
     }                                          \
   while (0)
 
-/* This defines which switch letters take arguments. */
+/* This defines which switch letters take arguments.  */
 
 #undef SWITCH_TAKES_ARG
 #define SWITCH_TAKES_ARG(CHAR)         \
@@ -39,7 +38,9 @@ Boston, MA 02111-1307, USA.  */
    with the options for generating PIC code.  */
 
 #undef ASM_SPEC
-#define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k -K}"
+#define ASM_SPEC "%{fpic|fpie:-k} %{fPIC|fPIE:-k -K}"
+
+#define AS_NEEDS_DASH_FOR_PIPED_INPUT
 
 
 /* Provide a STARTFILE_SPEC appropriate for NetBSD a.out.  Here we
@@ -58,8 +59,8 @@ Boston, MA 02111-1307, USA.  */
 /* Provide a LINK_SPEC appropriate for NetBSD a.out.  Here we provide
    support for the special GCC options -static, -assert, and -nostdlib.  */
 
-#undef LINK_SPEC
-#define LINK_SPEC                      \
+#undef NETBSD_LINK_SPEC_AOUT
+#define NETBSD_LINK_SPEC_AOUT          \
   "%{nostdlib:-nostdlib}               \
    %{!shared:                          \
      %{!nostdlib:                      \
@@ -71,6 +72,9 @@ Boston, MA 02111-1307, USA.  */
    %{R*}                               \
    %{assert*}"
 
+/* Default LINK_SPEC.  */
+#undef LINK_SPEC
+#define LINK_SPEC NETBSD_LINK_SPEC_AOUT
 
 /* Some imports from svr4.h in support of shared libraries.  */
 
@@ -196,13 +200,6 @@ Boston, MA 02111-1307, USA.  */
   do                                                                   \
     {                                                                  \
       if (!flag_inhibit_size_directive)                                        \
-       {                                                               \
-         char label[256];                                              \
-         static int labelno;                                           \
-         labelno++;                                                    \
-         ASM_GENERATE_INTERNAL_LABEL (label, "Lfe", labelno);          \
-         ASM_OUTPUT_INTERNAL_LABEL (FILE, "Lfe", labelno);             \
-         ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME, label);                \
-       }                                                               \
+       ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME);                         \
     }                                                                  \
   while (0)