One object file per symbol

Apr 25, 2008 2 Replies

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 ??


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 http://www.wescottdesign.com Need to learn how to apply control theory in your embedded system? "Applied Control Theory for Embedded Systems" by Tim Wescott Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required