* ldlang.c (section_already_linked): New static function.
authorIan Lance Taylor <ian@airs.com>
Mon, 1 Apr 1996 16:52:17 +0000 (16:52 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 1 Apr 1996 16:52:17 +0000 (16:52 +0000)
commit23595ba57a93b713a23fbb25b71229613b9e7132
tree152375f05639345ad697b2ab024588dadf0d76b5
parent771f63d3ff21c3cdbbf7ecf0537dbebf782e5f00
* ldlang.c (section_already_linked): New static function.
(wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
relocateable link.  Don't worry about section being NULL, since it
never should be.  Don't call init_os unless the section is going
to be added.
(ldlang_add_file): Call section_already_linked for each section.
* ldmain.c (multiple_definition): Don't warn about multiple
definitions in sections which are being discarded.
ld/ChangeLog
ld/ldlang.c