~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to ld/emultempl/sunos.em

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
/* This file is is generated by a shell script.  DO NOT EDIT! */
10
10
 
11
11
/* SunOS emulation code for ${EMULATION_NAME}
12
 
   Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003
13
 
   Free Software Foundation, Inc.
 
12
   Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
 
13
   2003, 2004 Free Software Foundation, Inc.
14
14
   Written by Steve Chamberlain <sac@cygnus.com>
15
15
   SunOS shared library support by Ian Lance Taylor <ian@cygnus.com>
16
16
 
83
83
static void
84
84
gld${EMULATION_NAME}_before_parse (void)
85
85
{
86
 
  const bfd_arch_info_type *arch = bfd_scan_arch ("${OUTPUT_ARCH}");
87
 
  if (arch)
88
 
    {
89
 
      ldfile_output_architecture = arch->arch;
90
 
      ldfile_output_machine = arch->mach;
91
 
      ldfile_output_machine_name = arch->printable_name;
92
 
    }
93
 
  else
94
 
    ldfile_output_architecture = bfd_arch_${ARCH};
 
86
  ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
95
87
  config.dynamic_link = TRUE;
96
88
  config.has_shared = TRUE;
97
89
}
679
671
    {
680
672
      struct bfd_link_hash_entry *h;
681
673
 
682
 
      for (h = link_info.hash->undefs; h != NULL; h = h->next)
 
674
      for (h = link_info.hash->undefs; h != NULL; h = h->und_next)
683
675
        {
684
676
          if (h->type == bfd_link_hash_undefined
685
677
              && h->u.undef.abfd != NULL