This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: how to force putting .text in libgcc.a to some other sections
- From: loody <miloody at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: "binutils at sourceware dot org Development" <binutils at sourceware dot org>
- Date: Mon, 18 Nov 2013 23:05:47 +0800
- Subject: Re: how to force putting .text in libgcc.a to some other sections
- Authentication-results: sourceware.org; auth=none
- References: <CANudz+tuy6zL_7TMuD7YB5=SZWGYV28td-3+8iVT+TgeiBbGQQ at mail dot gmail dot com> <mvmy54lkb0o dot fsf at hawking dot suse dot de>
hi Andreas:
2013/11/18 Andreas Schwab <schwab@suse.de>:
> loody <miloody@gmail.com> writes:
>
>> .text 0x00000000:
>> {
>> _ftext = ABSOLUTE(.) ; /* Start of code and read-only data */
>> *(EXCLUDE_FILE(_udivsi3.o) .text)
>> *(EXCLUDE_FILE(_dvmd_tls.o) .text)
>> *(EXCLUDE_FILE(libgcc.a) .text)
>
> If you want to match files in an archive you need to use the
> archive:file syntax.
so you mean I have to use
*(EXCLUDE_FILE(libgcc.a:_udivsi3.o) .text)
*(EXCLUDE_FILE(libgcc.a:_dvmd_tls.o) .text)
--
Regards,