How to put all object files into a section? For example, i have a.obj
b.obj
c.obj
and main.obj
. where a``b``c
are in a static library lib.lib
.
Now my linker script is like this:
MYSECTION 0x1800000:
{
a*(*);
b*(*);
c*(*);
main*(*);
}
But I want to use library name in the input section, how to do it?
MYSECTION 0x1800000:
{
lib.lib:*(*);
main*(*);
}
is not valid.