This is driving me insane...

I would like to provide a client with a .o file so that he can link
static against my library.  Unfortunatly I need to hide nearly all
the symbols in my object file.

For a shared object this works out super easy, all I do is generate
the .so file, then run strip -N on each symbol I want to nuke.

I'm having a hell of a time doing this so I can produce a static
.o or .a with most of the symbols stripped.  Two problems seem to be
that even if I use "ld -r -o main.o obj1.o obj2.c libfoo.a" then I
can not strip symbols in obj1.o that are referenced from obj2.o
even after I combine the object files.

Any hints?

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: [EMAIL PROTECTED] cell: 408-480-4684
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to