public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ribeiro Gabriel <gabriel@arkeia.com>
To: gcc-help@gcc.gnu.org
Subject: Problem using gcc to compile 64 bits kernel extensions on AIX 5L
Date: Wed, 01 Sep 2004 17:54:00 -0000	[thread overview]
Message-ID: <41360CDD.8060806@arkeia.com> (raw)

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

                 reply	other threads:[~2004-09-01 17:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41360CDD.8060806@arkeia.com \
    --to=gabriel@arkeia.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).