One object file per symbol

Folks,

Kind of a newbie here. I am looking to create a static library with 1 object per function symbol. For argument purposes say you have a file called myfile.c

void foo() void bar()

The archived static file should have.

myfile1.o:

00000000 T foo

myfile2.o:

00000000 T bar

Any ideas ??

Reply to
muni
Loading thread data ...

The traditional way to do it is with myfile1.c, myfile2.c, etc.

I think some tool chains (gnu?) will split things up for you, but it's not standard.

--
Tim Wescott
Control systems and communications consulting
 Click to see the full signature
Reply to
Tim Wescott

This is for the mips4kec processor with gnu mips-elf toolchain.

Reply to
muni

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.