🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #510

Re: HELP: gcc2.2.2, SVR3 shared libs and static data

#510
From: Michael Bloom
Date: Mon, 28 Sep 1992 20:10
24 lines
1568 bytes
In article <LPC7LWD@mailgzrz.tu-berlin.de> Thomas Wolfram writes:

     Hi, I'm about to create shared X11R5 (X386 1.2E/XFree86) libraries
     for SVR3 (ISC 3.0) .... 

     I want to stick with gcc 2.2.2 and not go back to 1.40. But I don't
     want to init all unitilialized (most static) data in dozens of X source
     files only to force gcc 2.2.2 to put it to .data section.
    ...

     Does anybody know a better solution? Perhaps changing the init code
     for the target shared library? But how? 
     Or can I hope for a gcc 2.2.3 with a option "-fput-uninitialized-to-data"?

For the 386, Gcc 2.2 seems to have a "-msvr3-shlib" option.

I don't seem to have the docs describing it handly, but the code looks
as though it should do what you want.

This should probably really be a "-f" option (-fsvr3-shlib), since it
works around a generic sys5r3 problem in mkshlib that is not unique
to the 386, but also occurs on 3b2, 68k and other architectures
(unless the specific vendor has reworked mkshlib so that it's not a
problem - and nearly all have not done so).
Technical Details
Message-ID: <1992Sep28.201043.19511@ttinews.tti.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news.service.uci.edu!ttinews!soldev!mb
References: <LPC7LWD@mailgzrz.tu-berlin.de>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news.service.uci.edu!ttinews!soldev!mb
From: mb@soldev.tti.com (Michael Bloom)
Subject: Re: HELP: gcc2.2.2, SVR3 shared libs and static data
Message-ID: <1992Sep28.201043.19511@ttinews.tti.com>
Sender: usenet@ttinews.tti.com (Usenet Admin)
Nntp-Posting-Host: soldev.tti.com
Organization: Transaction Technology Inc.
References: <LPC7LWD@mailgzrz.tu-berlin.de>
Date: Mon, 28 Sep 1992 20:10:43 GMT
Lines: 24