delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/30/16:29:02

Date: Sun, 30 Jan 1994 14:01:12 -0700 (MST)
From: Adam Fedor <fedor AT focus DOT Colorado DOT EDU>
Subject: Re: Linker problem/bug?
To: Dru Nelson <dnelson AT scri DOT fsu DOT edu>
Cc: LIST DJGPP <djgpp AT sun DOT soe DOT clarkson DOT edu>,
OBJC LIST <gnu-objc AT gnu DOT ai DOT mit DOT edu>


On Fri, 28 Jan 1994, Dru Nelson wrote:

>     I have tried using a function in the libobjc.a called
>     __init_dispatch_table_for_class on GCC 2.5.7 under 
>     DJGPP and an SGI.   What am I doing wrong, or is this a bug?

I'll avoid the obvious question and just make two observations:

[1] __init_dispatch_table_for_class is declared "static" in sendmsg.c so
there is no way the linker can know about the function unless you modify
the code in sendmsg.c

[2] There are a lot of other things that the runtime does
(automatically, may I add) before calling this function.  Look at init.c and
trace down from there...

---
Adam Fedor. CU, Boulder             | Never blame on enthalpy what can be 
fedor AT boulder DOT colorado DOT edu (W)      |   attributed to entropy.
adam AT bastille DOT rmnug DOT org (H,NeXTMail)|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019