🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #348

(none)

#348
From: Axel Schreiner
Date: Thu, 09 Apr 1992 10:44
25 lines
1398 bytes
gcc-2.1 configured for next

NeXT 2.1 "ld" returns the following error, e.g. when making gperf:

ld: options.o symbol 61 (___DTOR_LIST__) has unknown n_type field (0x16)

since "collect2" feeds the system's loader "ld", g++ stuff cannot be
loaded.

Additionally, "nm" displays a "?" as type field for __CTOR_LIST__ and
__DTOR_LIST__ when applied as "nm options.o".

The problem results from the default code in varasm.c defining constructors
and destructors.  To fix insert

	#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME)
	#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME)
	#define ASM_OUTPUT_GC_ENTRY(FILE,NAME)

into config/next.h as an "#else" to the "#if 0" which surrounds alternative
definitions and promises for them to work under NeXT system 3.0.

PS: varasm.c contains the same definition for these operations as does,
e.g., config/aoutos.h. Wouldn't it make more sense for varasm.c not to do
anything and let the various machine files take appropriate action?
Technical Details
Message-ID: <9204090644.AA22521@dosuni.informatik.Uni-Osnabrueck.DE>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.informatik.uni-osnabrueck.de!axel

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.informatik.uni-osnabrueck.de!axel
From: axel@thor.informatik.uni-osnabrueck.de (Axel Schreiner)
Subject: (none)
Message-ID: <9204090644.AA22521@dosuni.informatik.Uni-Osnabrueck.DE>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 9 Apr 1992 10:44:31 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 26