public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem using gcc to compile 64 bits kernel extensions on AIX 5L
@ 2004-09-01 17:54 Ribeiro Gabriel
  0 siblings, 0 replies; only message in thread
From: Ribeiro Gabriel @ 2004-09-01 17:54 UTC (permalink / raw)
  To: gcc-help

Hello all,

I am currently working on a 64 bits kernel extension for AIX 5L.

If I use the IBM compiler (xlc) to build my driver, there is no problem.
The build commands look like:
1. cc -q64 -D_KERNEL -c mydriver.c
2. ld -o mydriver -b64 -bI:/lib/kernex.exp -lsys -lcsys -emy_entry_point 
mydriver.o

But if I try to use gcc to build mydriver.c
1. gcc -maix64 -D_KERNEL -c mydriver.c
2. ld -o mydriver -b64 -bI:/lib/kernex.exp -lsys -lcsys -emy_entry_point 
mydriver.o

then the resulting driver 'mydriver' loads without any problem into the 
kernel
but crashes on trivial operations (typically when assigning variables 
that are on the stack).

Has anybody some experience with using gcc to build kernel extensions on 
AIX ?
Is there an option to pass to gcc or ld that I have forgotten ?

Any help would be very appreciated.

Thanks,
gabriel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-01 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 17:54 Problem using gcc to compile 64 bits kernel extensions on AIX 5L Ribeiro Gabriel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).