This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Problem Loading a Module Compiled with GCC 3.4.2
- From: Ajitpal Singh <meetajitpal at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 13 Jan 2006 09:57:05 +0530
- Subject: Problem Loading a Module Compiled with GCC 3.4.2
- References: <ede2a8d10601122022l7c0d9ec6td90230fdf3f22c9a@mail.gmail.com>
Hi All,
I have a kernel module which uses a function from a library file( .lib).
This function takes as a paramater a character pointer of string
buffer and simply prints that string.
This library file has been created by me using ld.
a) When I compile the module and link it with the libary file using
GCC Version 3.4.2(Supplied with Fedora Core 3,Kernel Version is 2.6.9)
and insmod it
I get a Kernel OOPS.
b) But if I compile the module with GCC 3.2.2 (Supplied with RedHat 9)
everything works fine and the module loads successfully.
Kindly could you please tell what could be the problem.
Best Regards,
Ajitpal Singh