Changeset 99 for trunk/src/binutils/ld


Ignore:
Timestamp:
May 7, 2003, 2:12:21 PM (22 years ago)
Author:
bird
Message:

abort() macro clash. Missing prototypes. Wrong function table initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/ld/emultempl/i386aoutemx.em

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r98 r99  
    6464
    6565# sed commands to quote an ld script as a C string.
    66 sc="-f ${srcdir}/emultempl/stringify.sed"
     66# bird: stringify.sed is in current directory.
     67sc="-f stringify.sed"
    6768
    6869#cat >>e${EMULATION_NAME}.c <<EOF
     
    143144parse (arg, format, error)
    144145  char *arg, *format;
     146  int error;
    145147{
    146148  int x;
     
    176178#include <sys/types.h>
    177179#include <sys/stat.h>
     180/* bird: clash with abort macro in ld should really include this earlier
     181 *       Quick fix is to undefine the abort macro.
     182 */
     183#undef abort
    178184#include <process.h>
     185#define abort() ld_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
     186/* bird: include headers for alloca and utime too please */
     187#include <alloca.h>
     188#include <sys/utime.h>
    179189
    180190static const char *exe_filename;
     
    324334  ext = _getext (entry->filename);
    325335  if (ext != NULL)
     336  {
    326337    if (stricmp (ext, ".def") == 0)
    327338    {
     
    336347      return true;
    337348    }
     349  }
    338350
    339351  return false;
     
    513525  gld_${EMULATION_NAME}_parse_args,
    514526  gld_${EMULATION_NAME}_unrecognized_file,
     527  NULL, /* list_options */
     528  NULL, /* recognized_file */
     529  NULL, /* find_potential_libraries */
    515530  gld_${EMULATION_NAME}_finish_link
    516531};
Note: See TracChangeset for help on using the changeset viewer.