* options.c (General_options::finalize): Add check for -static and
-shared. * gold.cc (queue_middle_tasks): Assert that list of dynamic objects is not empty.
This commit is contained in:
parent
c289427b7d
commit
4e1e25e084
3 changed files with 11 additions and 0 deletions
|
@ -792,6 +792,9 @@ General_options::finalize()
|
|||
this->add_sysroot();
|
||||
|
||||
// Now that we've normalized the options, check for contradictory ones.
|
||||
if (this->shared() && this->is_static())
|
||||
gold_fatal(_("-shared and -static are incompatible"));
|
||||
|
||||
if (this->shared() && this->relocatable())
|
||||
gold_fatal(_("-shared and -r are incompatible"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue