public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8360: HP-UX gcc 3.2 does not construct global/static objects when using 'shl_load'
@ 2002-10-25 13:16 george.benavides
  0 siblings, 0 replies; 2+ messages in thread
From: george.benavides @ 2002-10-25 13:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8360
>Category:       c++
>Synopsis:       HP-UX gcc 3.2 does not construct global/static objects when using 'shl_load'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 25 13:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     george.benavides@calebtech.com
>Release:        gcc 3.2 on HP-UX
>Organization:
>Environment:
HP-UX 11.0
>Description:
A problem exists where global/static objects are not getting constructed in a shared library that is dynamically loaded using HP 'shl_load' interface. If the library is linked during compile time, the objects are constructed without problem.
The shared library and executable are both compiled using g++ 3.2. Here are the commands used to build,which are provided in a Makefile:

        g++ -fPIC -c test_shared.cpp -o test_shared.o
        g++ -shared -fPIC test_shared.o -o libtestsh.sl
        g++ -fPIC -lpthread -ldld -L. test.cpp -o test

This problem seems to be related to HP-UX specific. The testcase provided works on Linux without errors.

Please advise.
>How-To-Repeat:
use testcase on a HP-UX 11.0 system
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/8360: HP-UX gcc 3.2 does not construct global/static objects when using 'shl_load'
@ 2003-01-04 22:22 danglin
  0 siblings, 0 replies; 2+ messages in thread
From: danglin @ 2003-01-04 22:22 UTC (permalink / raw)
  To: danglin, gcc-bugs, gcc-prs, george.benavides, nobody

Synopsis: HP-UX gcc 3.2 does not construct global/static objects when using 'shl_load'

Responsible-Changed-From-To: unassigned->danglin
Responsible-Changed-By: danglin
Responsible-Changed-When: Sat Jan  4 14:22:51 2003
Responsible-Changed-Why:
    Assigned.
State-Changed-From-To: open->closed
State-Changed-By: danglin
State-Changed-When: Sat Jan  4 14:22:51 2003
State-Changed-Why:
    Problem fixed in 3.3 and 3.4 under hpux11.
    <http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00208.html>.
    
    No fix is possible using earlier versions of hpux.  A user
    must arrange to explicitly call the shared library initializer when using shl_load.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8360


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-04 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-25 13:16 c++/8360: HP-UX gcc 3.2 does not construct global/static objects when using 'shl_load' george.benavides
2003-01-04 22:22 danglin

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).