Changeset 86 for trunk/src/binutils/ld


Ignore:
Timestamp:
May 3, 2003, 11:45:43 PM (22 years ago)
Author:
bird
Message:

Applied the original 2.11.2 diff.

Location:
trunk/src/binutils/ld
Files:
3 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/ld/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    13171317  $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
    13181318        ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
     1319ei386aoutemx.c: $(srcdir)/emulparams/i386aout.sh \
     1320  $(srcdir)/emultempl/i386aoutemx.em $(srcdir)/scripttempl/i386aoutemx.sc ${GEN_DEPENDS}
     1321        ${GENSCRIPTS} i386aoutemx "$(tdir_i386aoutemx)"
    13191322elnk960.c: $(srcdir)/emulparams/lnk960.sh \
    13201323  $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  • trunk/src/binutils/ld/configure.host

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    223223  ;;
    224224
     225*-*-os2*)
     226  HLDFLAGS="-s -Zexe -Zcrtdll"
     227  NATIVE_LIB_DIRS=/emx/lib
    225228esac
  • trunk/src/binutils/ld/configure.tgt

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    171171i[3456]86-*-interix*)   targ_emul=i386pe_posix;
    172172                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
     173i[3456]86-*-os2)        targ_emul=i386aoutemx; tdir_i386emx=i386aoutemx ;;
    173174i[3456]86-*-beospe*)    targ_emul=i386beos ;;
    174175i[3456]86-*-beos*)      targ_emul=elf_i386_be ;;
  • trunk/src/binutils/ld/ldctor.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    363363              if (e->name != NULL)
    364364                minfo ("%T\n", e->name);
    365               else
     365              else if (e->section->owner)
    366366                minfo ("%G\n", e->section->owner, e->section, e->value);
     367              else
     368                minfo ("*unknown*\n");
    367369            }
    368370
  • trunk/src/binutils/ld/ldemul.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    304304  return 0;
    305305}
     306
     307void
     308ldemul_finish_link (char *filename)
     309{
     310 if (ld_emulation->finish_link)
     311  ld_emulation->finish_link (filename);
     312}
  • trunk/src/binutils/ld/ldemul.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    140140    PARAMS ((char *, struct lang_input_statement_struct *));
    141141
     142  /* Perform final action(s) on output file */
     143  void (*finish_link) PARAMS ((char *));
     144
    142145} ld_emulation_xfer_type;
    143146
  • trunk/src/binutils/ld/ldfile.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    240240           arch = arch->next)
    241241        {
     242#if defined (__EMX__)
     243          found = ldfile_open_file_search (arch->name, entry, "", ".a");
     244          if (found)
     245            break;
     246#endif /* __EMX__ */
    242247          found = ldfile_open_file_search (arch->name, entry, "lib", ".a");
    243248          if (found)
  • trunk/src/binutils/ld/ldmain.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    174174  textdomain (PACKAGE);
    175175
     176#ifdef __EMX__
     177  _response (&argc, &argv);
     178  program_name = _getname(argv[0]);
     179#else
    176180  program_name = argv[0];
     181#endif
    177182  xmalloc_set_program_name (program_name);
    178183
     
    400405      if (! bfd_close (output_bfd))
    401406        einfo (_("%F%B: final close failed: %E\n"), output_bfd);
     407
     408      /* Perform the final actions on output file */
     409      ldemul_finish_link (output_filename);
    402410
    403411      /* If the --force-exe-suffix is enabled, and we're making an
Note: See TracChangeset for help on using the changeset viewer.