2011-04-13 Kai Tietz <ktietz@redhat.com>
authorKai Tietz <kai.tietz@onevision.com>
Wed, 13 Apr 2011 12:53:36 +0000 (12:53 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Wed, 13 Apr 2011 12:53:36 +0000 (12:53 +0000)
commitdb17156eaa6dbb38436c6a01712688e35389e773
treed21e8952f2eee10e1e62512a1c98b7857c211bf5
parent7f880bc3d4d91558b61f7460dabacc04c0ed44a3
2011-04-13  Kai Tietz  <ktietz@redhat.com>

PR binutils/12658
* deffile.h (def_file_add_export): Add is_dup argument.
(def_file_add_import): Likewise.
* deffilep.y (are_names_equal): New helper.
(cmp_export_elem): New helper.
(find_export_in_list): Add search routine for exports.
(def_file_add_export): Check for duplicates.
(cmp_import_elem): New helper.
(find_import_in_list): Add search routine for imports.
(def_file_add_import): Check for duplicates.
(def_exports): Handle duplicates.
(def_imports): Likewise.
* pe-dll.c (process_def_file_and_drectve): Likewise.
(pe_implied_import_dll): Likewise.
ld/ChangeLog
ld/deffile.h
ld/deffilep.y
ld/pe-dll.c