* elflink.h (elf_bfd_final_link): Check if dynobj is not NULL
[binutils-gdb.git] / ld / mpw-eppcmac.c
index ba09a410df22aa4e112926af0125c490f178cbfa..12780975a199f8fcf2cd787b52fb559e3730d3e8 100644 (file)
@@ -1,7 +1,8 @@
 /* This file is is generated by a shell script.  DO NOT EDIT! */
 
 /* AIX emulation code for ppcmacos
-   Copyright (C) 1991, 1993, 1995, 1998 Free Software Foundation, Inc.
+   Copyright 1991, 1993, 1995, 1996, 1997, 2000, 2001
+   Free Software Foundation, Inc.
    Written by Steve Chamberlain <sac@cygnus.com>
    AIX support by Ian Lance Taylor <ian@cygnus.com>
 
@@ -26,20 +27,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "bfd.h"
 #include "sysdep.h"
 #include "libiberty.h"
+#include "safe-ctype.h"
 #include "getopt.h"
 #include "bfdlink.h"
 
-#include <ctype.h>
-
 #include "ld.h"
 #include "ldmain.h"
-#include "ldemul.h"
-#include "ldfile.h"
 #include "ldmisc.h"
 #include "ldexp.h"
 #include "ldlang.h"
 #include "ldctor.h"
 #include "ldgram.h"
+#include "ldfile.h"
+#include "ldemul.h"
 
 static void gldppcmacos_before_parse PARAMS ((void));
 static int gldppcmacos_parse_args PARAMS ((int, char **));
@@ -571,13 +571,13 @@ gldppcmacos_before_allocation ()
       if (os == NULL)
        einfo (_("%P%F: can't find output section %s\n"),
               sec->output_section->name);
-      for (pls = &os->children.head; *pls != NULL; pls = &(*pls)->next)
+      for (pls = &os->children.head; *pls != NULL; pls = &(*pls)->header.next)
        {
          if ((*pls)->header.type == lang_input_section_enum
              && (*pls)->input_section.section == sec)
            {
              is = (lang_input_section_type *) *pls;
-             *pls = (*pls)->next;
+             *pls = (*pls)->header.next;
              break;
            }
          if ((*pls)->header.type == lang_wild_statement_enum)
@@ -586,13 +586,13 @@ gldppcmacos_before_allocation ()
 
              for (pwls = &(*pls)->wild_statement.children.head;
                   *pwls != NULL;
-                  pwls = &(*pwls)->next)
+                  pwls = &(*pwls)->header.next)
                {
                  if ((*pwls)->header.type == lang_input_section_enum
                      && (*pwls)->input_section.section == sec)
                    {
                      is = (lang_input_section_type *) *pwls;
-                     *pwls = (*pwls)->next;
+                     *pwls = (*pwls)->header.next;
                      break;
                    }
                }
@@ -707,7 +707,7 @@ gldppcmacos_read_file (filename, import)
       ++lineno;
 
       s = (char *) obstack_base (o);
-      while (isspace ((unsigned char) *s))
+      while (ISSPACE (*s))
        ++s;
       if (*s == '\0'
          || *s == '*'
@@ -721,7 +721,7 @@ gldppcmacos_read_file (filename, import)
       if (*s == '#' && s[1] == '!')
        {
          s += 2;
-         while (isspace ((unsigned char) *s))
+         while (ISSPACE (*s))
            ++s;
          if (*s == '\0')
            {
@@ -742,7 +742,7 @@ gldppcmacos_read_file (filename, import)
              keep = true;
              imppath = s;
              file = NULL;
-             while (! isspace ((unsigned char) *s) && *s != '(' && *s != '\0')
+             while (! ISSPACE (*s) && *s != '(' && *s != '\0')
                {
                  if (*s == '/')
                    file = s + 1;
@@ -762,7 +762,7 @@ gldppcmacos_read_file (filename, import)
                }
              cs = *s;
              *s = '\0';
-             while (isspace ((unsigned char) cs))
+             while (ISSPACE (cs))
                {
                  ++s;
                  cs = *s;
@@ -796,7 +796,7 @@ gldppcmacos_read_file (filename, import)
       syscall = false;
       address = (bfd_vma) -1;
 
-      while (! isspace ((unsigned char) *s) && *s != '\0')
+      while (! ISSPACE (*s) && *s != '\0')
        ++s;
       if (*s != '\0')
        {
@@ -804,16 +804,16 @@ gldppcmacos_read_file (filename, import)
 
          *s++ = '\0';
 
-         while (isspace ((unsigned char) *s))
+         while (ISSPACE (*s))
            ++s;
 
          se = s;
-         while (! isspace ((unsigned char) *se) && *se != '\0')
+         while (! ISSPACE (*se) && *se != '\0')
            ++se;
          if (*se != '\0')
            {
              *se++ = '\0';
-             while (isspace ((unsigned char) *se))
+             while (ISSPACE (*se))
                ++se;
              if (*se != '\0')
                einfo (_("%s%d: warning: syntax error in import/export file\n"),
@@ -842,7 +842,7 @@ gldppcmacos_read_file (filename, import)
          n = ((struct export_symbol_list *)
               xmalloc (sizeof (struct export_symbol_list)));
          n->next = export_symbols;
-         n->name = buystring (symname);
+         n->name = xstrdup (symname);
          n->syscall = syscall;
          export_symbols = n;
        }