This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linker script: Usage of INCLUDE and EXCLUDE_FILE + SORT_BY_ALIGNMENT/SORT_BY_NAME?
- From: Dirk Behme <dirk dot behme at googlemail dot com>
- To: Andreas Schwab <schwab at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 27 May 2011 15:01:52 +0200
- Subject: Re: Linker script: Usage of INCLUDE and EXCLUDE_FILE + SORT_BY_ALIGNMENT/SORT_BY_NAME?
- References: <4DDE66CD.10103@googlemail.com> <m362oxjyg6.fsf@redhat.com>
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