summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-10-14 09:15:08 +0000
committerNick Clifton <nickc@redhat.com>2013-10-14 09:15:08 +0000
commita33afc5bcd65a1358269323aa5245973811aaa92 (patch)
tree2b40d7919847505c4e233d618ec765ed2c084fd8 /ld
parent350c8965a60b19d3dcd4ef728edd88c74bf8412a (diff)
downloadbinutils-redhat-a33afc5bcd65a1358269323aa5245973811aaa92.tar.gz
* gen-aout.c (main): Fix formatting. Close file.
* emultempl/aix.em (_read_file): Close file at end of function. * gas/all/itbl-test.c (main): Close fas. * read.c (add_include_dir): Use xrealloc. * config/tc-score.c (do_macro_bcmp): Initialise inst_main. * config/tc-tic6x.c (tic6x_parse_operand): Initialise second_reg. * readelf.c (decode_arm_unwind): Initialise addr structure. (process_symbol_table): Free lengths. * srcconv.c (wr_sc): Free info. * chew.c (perform): Free next.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emultempl/aix.em7
2 files changed, 8 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 14287ddd3a..b8ebe32c12 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-14 Nick Clifton <nickc@redhat.com>
+
+ * emultempl/aix.em (_read_file): Close file at end of function.
+
2013-10-10 Roland McGrath <mcgrathr@google.com>
* ldmisc.c (vfinfo): Use Boolean ? "" : ":" in place of ":" + Boolean.
diff --git a/ld/emultempl/aix.em b/ld/emultempl/aix.em
index b48228a134..aa72ce64c4 100644
--- a/ld/emultempl/aix.em
+++ b/ld/emultempl/aix.em
@@ -9,9 +9,7 @@ fragment <<EOF
/* This file is is generated by a shell script. DO NOT EDIT! */
/* AIX emulation code for ${EMULATION_NAME}
- Copyright 1991, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012
- Free Software Foundation, Inc.
+ Copyright 1991-2013 Free Software Foundation, Inc.
Written by Steve Chamberlain <sac@cygnus.com>
AIX support by Ian Lance Taylor <ian@cygnus.com>
AIX 64 bit support by Tom Rix <trix@redhat.com>
@@ -1110,6 +1108,7 @@ gld${EMULATION_NAME}_read_file (const char *filename, bfd_boolean import)
{
bfd_set_error (bfd_error_system_call);
einfo ("%F%s: %E\n", filename);
+ return;
}
keep = FALSE;
@@ -1314,6 +1313,8 @@ gld${EMULATION_NAME}_read_file (const char *filename, bfd_boolean import)
obstack_free (o, NULL);
free (o);
}
+
+ fclose (f);
}
/* This routine saves us from worrying about declaring free. */