This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] incremental links should disable --gc-sections, --icf, etc.


Gold currently prints error messages if certain options are used with
incremental links, but does not exit. Most of these should call
gold_fatal instead of gold_error; for a few of them (--gc-sections,
--icf, --compress-debug-sections), it's reasonable to simply disable
the incompatible option and print a warning. I've also moved the code
to make these checks into General_options::finalize().

OK to commit?

-cary


	* gold/gold.cc (queue_initial_tasks): Move option checks ...
	* gold/options.cc (General_options::finalize): ... to here. Disable
	some options; make others fatal.

Attachment: disable-gc-patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]