This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
how to force putting .text in libgcc.a to some other sections
- From: loody <miloody at gmail dot com>
- To: "binutils at sourceware dot org Development" <binutils at sourceware dot org>
- Date: Mon, 18 Nov 2013 22:46:01 +0800
- Subject: how to force putting .text in libgcc.a to some other sections
- Authentication-results: sourceware.org; auth=none
hi all:
I know default *.text of libgcc.a will put in .text section.
if I want .text in 2 object files in libgcc.a to put in some other section.
Is it possible to reach that?
I try to use EXCLUDE_FILE but fail.
Below is my link script.
.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)
. = ALIGN(0x40);
*(.init_array)
*(.fini_array)
*(.init)
*(.fini)
*(.iplt)
_etext_init = ABSOLUTE(.); /* End of code and read-only data */
}
.securesw : AT( _etext_init)
{
. = ALIGN(64);
_securesw = .;
_udivsi3.o(.text)
_dvmd_tls.o(.text)
. = ALIGN(64);
}
Appreciate your help in advance,