This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segmentation fault using shared object on AIX 5.1


Hi Stuart,

Wouldn't you want to generate the files like...
gcc -fPIC -g -pthread -D_LARGE_FILES -c source.c
...or...
gcc -fpic -g -pthread -D_LARGE_FILES -c source.c

The -fPIC is large-code-model position independent code.

The -fpic is small-code-model position independent code.

Sincerely,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]