Problem with linking static lib text into specific section
Ian Lance Taylor
iant@google.com
Tue May 29 19:46:00 GMT 2012
Elad Yosef <elad.yosef@gmail.com> writes:
> Doesn't it match only the files names from the specified archive?
There is no colon there, so, no. You can have a list of file name
patterns, and that is what is happening here.
Ian
> On Tue, May 29, 2012 at 8:48 PM, Ian Lance Taylor <iant@google.com> wrote:
>> Elad Yosef <elad.yosef@gmail.com> writes:
>>
>>> libMars-Cli.a *(.text.*) \
>>
>> This is a list of file names. It will match any file name that matches
>> libMars-Cli.a or *. In other words, since * matches every file name,
>> this will match every file name.
>>
>> To match a file within an archive, write archive-name:file-name. To
>> match the whole archive, write archive-name:. See
>> http://sourceware.org/binutils/docs-2.22/ld/Input-Section-Basics.html .
>>
>> Ian
More information about the Gcc-help
mailing list