🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #49

question, not a bug - ld 2.0 & remapping system/libaray calls

#49
From: Jim Robinson
Date: Mon, 02 Nov 1992 08:59
21 lines
1424 bytes
This doesn't seem to be the right group for this, but I was not sure which
would be better, so please bear w/ me.

I have been looking at the documentation for ld 2.0 and it would appear
that a fairly powerful command language comes with this linker. This has me
to wondering whether the question of remapping (not an accurate term, but
it will do for now) of library/system calls in a fairly portable manner is
possible using gld.

Basically what I want to do is create and link in a routine called, say,
my_read() which would be called in place of *any and all* calls (including
libc calls!)  to the real read().  The tricky part is that my_read() will
at some point be calling the real read().

Any info/tips/advice greatly appreciated.

Thanks
-- 
Jim Robinson
robinson@mdd.comm.mot.com
{ubc-cs!van-bc,uunet}!mdivax1!robinson
Technical Details
Message-ID: <92Nov2.140043est.62@jarvis.csri.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mdivax1.UUCP!robinson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mdivax1.UUCP!robinson
From: robinson@mdivax1.UUCP (Jim Robinson)
Newsgroups: gnu.utils.bug
Subject: question, not a bug -  ld 2.0 & remapping system/libaray calls
Message-ID: <92Nov2.140043est.62@jarvis.csri.toronto.edu>
Date: 2 Nov 92 08:59:58 GMT
Sender: gnulists@ai.mit.edu
Reply-To: robinson@mdd.comm.mot.com (Jim Robinson)
Distribution: gnu
Organization: Motorola - Mobile Data Division; Richmond, BC
Lines: 21
Approved: bug-gnu-utils@prep.ai.mit.edu