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]

Re: [patch][gold] Add -nostdlib


Rafael Espindola <espindola@google.com> writes:

> 2010-05-18  Rafael Espindola  <espindola@google.com>
>
> 	* options.cc (General_options::finalize): Handle -nostdlib.
> 	* options.h (nostdlib): New option.
> 	* script.cc (script_add_search_dir): Handle -nostdlib.


> --- a/gold/options.cc
> +++ b/gold/options.cc
> @@ -1074,7 +1074,7 @@ General_options::finalize()
>  	}
>        while (next_pos != std::string::npos);
>      }
> -  else
> +  else if(!this->nostdlib())

Space before left parenthesis.

> --- a/gold/script.cc
> +++ b/gold/script.cc
> @@ -2767,7 +2767,7 @@ script_add_search_dir(void* closurev, const char* option, size_t length)
>      gold_warning(_("%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid"
>  		   " for scripts specified via -T/--script"),
>  		 closure->filename(), closure->lineno(), closure->charpos());
> -  else
> +  else if(!closure->command_line()->options().nostdlib())

Space before left parenthesis.

This is OK with those changes.

Thanks.

Ian


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