PR 10979
authorIan Lance Taylor <ian@airs.com>
Thu, 31 Dec 2009 03:48:46 +0000 (03:48 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 31 Dec 2009 03:48:46 +0000 (03:48 +0000)
commitd7bb5745008bb111becc3dc87e7ce243f59b7170
tree90278a6e9c9daca6652c0e8c90ddfc77ef9accee
parentfc59c57250878209dbcacd68712643d88b1c7adc
PR 10979
* script.cc (read_input_script): If we see a new SECTIONS clause,
and we have added an input section, give an error.
* layout.h (class Layout): Add have_added_input_section function.
Add have_added_input_section_ field.
* layout.cc (Layout::Layout): Initialize
have_added_input_section_.
(Layout::layout): Set have_added_input_section_.
(Layout::layout_eh_frame): Likewise.
gold/ChangeLog
gold/layout.cc
gold/layout.h
gold/script.cc