Article View: gnu.g++.lib.bug
Article #208pmax problems with test0
From: Peter R. Ham
Date: Mon, 11 Dec 1989 18:33
Date: Mon, 11 Dec 1989 18:33
36 lines
1718 bytes
1718 bytes
This little test program is giving me some problems. Maybe it's not worth spending time on these little problems, but it seems like a good way to ferret out bugs and machine dependencies. In test.hello.cc, there are some macro definitions for USG and hpux, that imply that this file works using COFF. These definitions don't work for the pmax version of COFF. Has anyone actually run this test on USG, hpux, or any other COFF machine. The defines don't look correct to me. Instead of: #define a_text text_start #define a_data data_start I think that they should be: #define a_text tsize #define a_data dsize (at least on the mips). Furthermore, all of the files that include Incremental.h and use the macro DECLARE_INIT_FUNCTION, all reference an external variable called "_initfn". I can't find this variable defined anywhere. Could it be that this code depends on the behavior of the BSD linker and expects the linker to define it. The pmax linker requires that all symbols be defined exactly once, so this tactic won't work. _initfn will have to be defined somewhere else and linked in. Peter -- Peter Ham PO Box 3430 (h)(415) 322-4390 MS Computer Science Student Stanford, CA ham@cs.stanford.edu Stanford University 94309 (o)(415) 723-2067
Technical Details
Message-ID:
<HAM.89Dec11103323@Neon.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!shelby!neon!neon.Stanford.EDU!hamShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!shelby!neon!neon.Stanford.EDU!ham From: ham@Neon.Stanford.EDU (Peter R. Ham) Newsgroups: gnu.g++.lib.bug Subject: pmax problems with test0 Message-ID: <HAM.89Dec11103323@Neon.Stanford.EDU> Date: 11 Dec 89 18:33:23 GMT Sender: USENET News System <news@Neon.Stanford.EDU> Distribution: gnu Organization: Stanford University Lines: 36