ld.info: Implicit Linker Scripts

Go backward to Expressions
Go up to Scripts
Go to the top op ld

Implicit Linker Scripts

   If you specify a linker input file which the linker can not
recognize as an object file or an archive file, it will try to read the
file as a linker script.  If the file can not be parsed as a linker
script, the linker will report an error.
   An implicit linker script will not replace the default linker script.
   Typically an implicit linker script would contain only symbol
assignments, or the `INPUT', `GROUP', or `VERSION' commands.
   Any input files read because of an implicit linker script will be
read at the position in the command line where the implicit linker
script was read.  This can affect archive searching.