Don't ignore "-m emulation" command line option
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Oct 2015 15:04:58 +0000 (08:04 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Oct 2015 15:05:09 +0000 (08:05 -0700)
commit6457197210144f50a696097c0d308d81d46d5510
treedc8ba9a38f4bc0a79bf27dba208599434dbeff0c
parente66acfb155e75c1909a6f29702ed6ba3762e36b4
Don't ignore "-m emulation" command line option

Gold shouldn't ignore "-m emulation" command line option, which may
lead to incorrect output.

PR gold/19119
* options.h (General_options): Remove "obsolete" from -m.
* parameters.cc (set_parameters_target): Check if input target
is compatible with output emulation set by "-m emulation".
gold/ChangeLog
gold/options.h
gold/parameters.cc