🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #252

gld 1.97 (beta) BFD linker question

#252
From: Scott Michel
Date: Tue, 11 Aug 1992 00:50
28 lines
1755 bytes
Ok, this is a (easy?) question: in the BFD based gld 1.97, where in the
COFF BFD code (coffcode.c) does symbol definition and fixup occur?

In my case, I'm trying to link SCO COFF (sputter and spit) objects together
using the GCC compiler. I see the following behavior (after figuring out
where a simple "hello world!" program craps out)

	- atexit() is called from crtbegin.o
	- atexit is relocated and occurs in the executable at 0x1fa.
	  (According to SCO's and GNU's nm 1.97-beta)
	- When the code is run, it calls a function at 0x1f0.

>From the executable created using the SCO ld, atexit is called succesfully.
It appears as if the reference and the definition are off by 4 bytes, but
I can't pin down in the COFF BFD code where this occurs. I do know that it
occurs during sometime when the object and archive files are opened.

I enjoy the hacking, but I've got to get busy on a business related project
so y'all'd be so kind to point me in a direction, I'd be much obliged.

advTHANKSance

scottm
-- 
------------------------------------------------------------------------------
Scott Michel, IntelliMED Corporation  | "For the words of the profits were
E-mail:    scottm@intime.intime.COM   |  written on the studio walls!"
CI$:       72600,1657                 | [Rush - _Permanent Waves_]
Technical Details
Message-ID: <Bssnnx.CHG@intime.intime.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!intime.INTime.COM!scottm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!intime.INTime.COM!scottm
From: scottm@intime.INTime.COM (Scott Michel)
Subject: gld 1.97 (beta) BFD linker question
Message-ID: <Bssnnx.CHG@intime.intime.COM>
Sender: gnulists@ai.mit.edu
Organization: IntelliMED Corporation, Santa Monica, CA
Distribution: gnu
Date: Tue, 11 Aug 1992 00:50:20 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 30