Thread View: gnu.misc.discuss
2 messages
2 total messages
Started by Daniel A. Fields
Tue, 26 Jan 1993 12:50
Cygnus gcc and loadable modules Solaris 2.1
Author: Daniel A. Fields
Date: Tue, 26 Jan 1993 12:50
Date: Tue, 26 Jan 1993 12:50
12 lines
768 bytes
768 bytes
When I compile a pushable module with the SPARCcompiler I am able to load the module with no problem. Compile the thing with the Cygnus gcc The kernel panics when it is trying to relocate the object. Objects produced from both compiler are "ELF 32-bit MSB relocatable SPARC Version 1". What the deal ? Dan Fields Pacer Software, Inc. 1900 West Park Drive, Suite 280 Westborough, Ma. 01581
Re: Cygnus gcc and loadable modules Solaris 2.1
Author: Joe Buck
Date: Tue, 26 Jan 1993 19:15
Date: Tue, 26 Jan 1993 19:15
30 lines
1736 bytes
1736 bytes
In article <1843@pacvax.UUCP> fields@pacvax.UUCP (Daniel A. Fields) writes:
>When I compile a pushable module with the SPARCcompiler I am able to
>load the module with no problem. Compile the thing with the Cygnus gcc
>The kernel panics when it is trying to relocate the object. Objects
>produced from both compiler are "ELF 32-bit MSB relocatable SPARC
>Version 1". What the deal ?
Kind of an odd group to post this question to, but I'll take a shot
at an answer anyway (gnu.gcc.help would have been better).
It's possible that the problem has to do with a disagreement between
your code and the kernel as to how structs are passed; by default,
gcc uses an incompatible method. If this is the problem, you could
try using -fpcc-struct-return. From the GCC manual:
`-fpcc-struct-return'
Use the same convention for returning `struct' and `union' values
that is used by the usual C compiler on your system. This
convention is less efficient for small structures, and on many
machines it fails to be reentrant; but it has the advantage of
allowing intercallability between GNU CC-compiled code and
PCC-compiled code
(Sun's compiler is not pcc-based, but the flag still has this name).
--
Joe Buck jbuck@ohm.berkeley.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads