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]

how to force putting .text in libgcc.a to some other sections


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,


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