memory functions crashing in AIX

Hi All,

I'm facing the following issue with my shared libraries in 64 bit 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 .

someone please help me out

thanks

Abhinav