how to force putting .text in libgcc.a to some other sections
loody
miloody@gmail.com
Mon Nov 18 14:46:00 GMT 2013
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,
More information about the Binutils
mailing list