Anyone out there familiar with the DLL tools that are found on sunsite?
I'm trying to put together a shared lib, and I'm having trouble with the
I put together a small C file, say something silly like this:
void jprint (char *string)
jprint() being the only function in my library. Now, I compile itQuote:}
using gcc -B/usr/bin/jump func.c -c and get the jump.log file. I split the
log file up using getvars and getfuncs (and getsize.) Now, I go back to my
object file and do this:
mkimage -l libjlib -v1.0 -a 0x80000000 -g 0x4000 -- func.o \
`gcc --print-libgcc-file-name` -lc
and mkimage complains about mulitple definitions of jprint.
I guess I have a number of questions, for anyone that can answer them.
First, how does one know what to use for the -a, -g, and -j switches? Do you
just guess? Secondly, does anyone see what I'm doing wrong here?
I've read the readme.ps that came with the tools. A good portion of it
went right over my head, unfortunately. But, I think I'm following the
directions correctly. Could some kind soul point me in the right direction?
And please, don't say "Use ELF."
Respond either by posting or email. Thanks.
Jason Van Patten | If at first you don't succeed, keep |
Clarkson University | on sucking till you do suck seed. |
Any opinions expressed here are actually yours, you just don't know it, yet.