This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linker script: Usage of INCLUDE and EXCLUDE_FILE + SORT_BY_ALIGNMENT/SORT_BY_NAME?


On Thu, May 26, 2011 at 5:03 PM, Andreas Schwab <schwab@redhat.com> wrote:
> Dirk Behme <dirk.behme@googlemail.com> writes:
>
>> 1. I have some statements like this:
>>
>> .text ? ?:
>> {
>> ? ? file1.o
>> ? ? file2.o
>> ? ? (.text)
>> }
>
> This output section spec contains two input section descriptions:
> `file1.o' and `file2.o(.text)'.

Ok, thanks!

This seems to be what I want

file1.o (.text)
file2.o (.text)

then. Is there any option to give a list of files?

I tried

file1.o file2.o (.text)

and

(file1.o file2.o)(.text)

but without success. What would be the correct syntax for this?

In the second step I'd like to replace the list of files with
something like INCLUDE, then.

Many thanks again and best regards

Dirk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]