linker file/section matching rules when using libraries

Nick Kelsey fsf@silicondust.com
Wed Feb 4 19:47:00 GMT 2004


Hi all,

In the linker script, when writing section matching rules they follow the
following form:

<filename> (<section name>)

For example:
* (.text)
* (.text.*)

The filename works if you specify the name of a .o file and either pass it
on the command line or the .o file is available in the linker .o search
path.

The problem is that our build process puts everything into lib files (.a)
and the .o files are not available to the linker.

How do you specify either a lib file to match or ideally a file within a lib
file (if that is possible)?

I would appreciate your advice.

Thanks

Nick



More information about the Binutils mailing list