| %%{ |
| /* --COPYRIGHT--,EPL |
| * Copyright (c) 2008 Texas Instruments and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Texas Instruments - initial implementation |
| * |
| * --/COPYRIGHT--*/ |
| |
| /* Linker templates are passed the following arguments: |
| * $out - an open file stream for the generated linker |
| * command file |
| * $args[] - array of zero or more libraries that should be linked |
| * with (in the order they appear in the argument list) |
| * |
| * We can't add "'s around names; otherwise the GNU linker looks for names |
| * with "'s. |
| * |
| * The GNU linker accepts any text file as "command files", so there is no |
| * need to use a special option to identify them. In fact, if you use the |
| * -T option you must also include the default linker command file (which |
| * defines the memory map, sections, etc). By not using -T, this command |
| * file "accumulates" with the default. |
| */ |
| |
| /* get the GNU compiler version from the version number returned by ITarget */ |
| var VERSION = this.build.target.version.split(',')[2] - 0; |
| |
| /* guess(!) the default leading prefix convention for this compiler */ |
| var PREFIX = this.build.target.os == "Windows" ? "_" : ""; |
| %%} |
| ; this file was generated by linkcmd.xdt from the arm.targets package |
| |
| ; function aliases |
| %for (var keys = this.$$aliases.keys(); keys.hasMoreElements(); ) { |
| % var key = keys.nextElement(); |
| ; `PREFIX + key` = `PREFIX + this.$$aliases.get(key)`; |
| %} |
| |
| %if ($args.length > 0) { |
| ; input libraries |
| %for (var i = 0; i < $args.length; i++) { |
| `$args[i]` |
| %} |
| %} |