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]

Specify section for whole .a static library


Hello,

I can use linker script capabilities to put the contents of any
sections from a file to another one using following syntax

SECTIONS {
  .foo { file.o(.text) }
}

I'd like to do that for whole static library, but don't know if it is
possible. Decompressing the library is not a clean way. May be there
is a command to force compiler (c, cpp) to use specified sections?

regards
Jan


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