This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Wolfgang Fritz wrote: > > For my "real life" applications I have one problem that I couldn't solve > up to now. I have one application which needs a special linker script > which is conflicting with the default linker script from the specs file. > I have the following entry in the specs file: > > *link: > %{!T:-T dt.ld%s} > > which LOOKS to me as it would mean "If there are no -T options on the > linker command line, use the default dt.ld, otherwise don't". That is > what I want. But dt.ld is always used, and my special application gives > nice error messages during the link. The 'specs' file will be read by 'gcc', not by 'ld', so the logic goes: "If there are no -T options on the gcc command line, put the option '-T dt.ld%s' onto the 'ld' command line, otherwise don't"... But 'gcc' wouldn't understand the '-T' option because it is a option for 'ld'... So the right way is to put : *link: %{!Wl,-T*:-T dt.ld%s} there, because the linker options are given using the '-Wl,<ld_options>' on the 'gcc' command line... Cheers, Kai > > I could not find documentation about the specs entries (I'll keep on > searching). Is ther a solution for this problem which I would imagine is > a common one in embedded systems with differing memory layouts etc. > > Wolfgang > > > Regards, Kai > > > > ------ > > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |