1<html lang="en"> 2<head> 3<title>Implicit Linker Scripts - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Scripts.html#Scripts" title="Scripts"> 9<link rel="prev" href="Expressions.html#Expressions" title="Expressions"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<!-- 12This file documents the GNU linker LD 13(Sourcery CodeBench Lite 2013.11-24) 14version 2.23.52. 15 16Copyright (C) 1991-2013 Free Software Foundation, Inc. 17 18Permission is granted to copy, distribute and/or modify this document 19under the terms of the GNU Free Documentation License, Version 1.3 20or any later version published by the Free Software Foundation; 21with no Invariant Sections, with no Front-Cover Texts, and with no 22Back-Cover Texts. A copy of the license is included in the 23section entitled ``GNU Free Documentation License''.--> 24<meta http-equiv="Content-Style-Type" content="text/css"> 25<style type="text/css"><!-- 26 pre.display { font-family:inherit } 27 pre.format { font-family:inherit } 28 pre.smalldisplay { font-family:inherit; font-size:smaller } 29 pre.smallformat { font-family:inherit; font-size:smaller } 30 pre.smallexample { font-size:smaller } 31 pre.smalllisp { font-size:smaller } 32 span.sc { font-variant:small-caps } 33 span.roman { font-family:serif; font-weight:normal; } 34 span.sansserif { font-family:sans-serif; font-weight:normal; } 35--></style> 36<link rel="stylesheet" type="text/css" href="../cs.css"> 37</head> 38<body> 39<div class="node"> 40<a name="Implicit-Linker-Scripts"></a> 41<p> 42Previous: <a rel="previous" accesskey="p" href="Expressions.html#Expressions">Expressions</a>, 43Up: <a rel="up" accesskey="u" href="Scripts.html#Scripts">Scripts</a> 44<hr> 45</div> 46 47<h3 class="section">3.11 Implicit Linker Scripts</h3> 48 49<p><a name="index-implicit-linker-scripts-577"></a>If you specify a linker input file which the linker can not recognize as 50an object file or an archive file, it will try to read the file as a 51linker script. If the file can not be parsed as a linker script, the 52linker will report an error. 53 54 <p>An implicit linker script will not replace the default linker script. 55 56 <p>Typically an implicit linker script would contain only symbol 57assignments, or the <code>INPUT</code>, <code>GROUP</code>, or <code>VERSION</code> 58commands. 59 60 <p>Any input files read because of an implicit linker script will be read 61at the position in the command line where the implicit linker script was 62read. This can affect archive searching. 63 64 </body></html> 65 66