This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Specify section for whole .a static library
- From: Jan Pohanka <xhpohanka at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 6 Apr 2011 11:27:43 +0200
- Subject: 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