~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to bfd/oasys.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* BFD back-end for oasys objects.
2
2
   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001,
3
 
   2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 
3
   2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
4
4
   Written by Steve Chamberlain of Cygnus Support, <sac@cygnus.com>.
5
5
 
6
6
   This file is part of BFD, the Binary File Descriptor library.
1084
1084
oasys_make_empty_symbol (bfd *abfd)
1085
1085
{
1086
1086
  bfd_size_type amt = sizeof (oasys_symbol_type);
1087
 
  oasys_symbol_type *new = bfd_zalloc (abfd, amt);
 
1087
  oasys_symbol_type *new_symbol_type = bfd_zalloc (abfd, amt);
1088
1088
 
1089
 
  if (!new)
 
1089
  if (!new_symbol_type)
1090
1090
    return NULL;
1091
 
  new->symbol.the_bfd = abfd;
1092
 
  return &new->symbol;
 
1091
  new_symbol_type->symbol.the_bfd = abfd;
 
1092
  return &new_symbol_type->symbol;
1093
1093
}
1094
1094
 
1095
1095
/* User should have checked the file flags; perhaps we should return