memory problem in AIX shared libraries

Hi All,

I'm facing the following issue with my shared libraries in AIX.

memory related calls such as memset, memcpy, malloc etc are failing miserably.

there is something wrong with stack/memory which i can't guess.

i've used the following flags to build my libraray:

ld -G -bexpfull -bnoentry -bnogc -o <shared library name> <object files>

and the follwong option to compile the c files

gcc -maix64 -c -shared -fPIC .

somone please help me out

thanks

Abhinav