Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 1999 16:45:27 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        nmh@dialup.nacamar.de
Cc:        hackers@freebsd.org
Subject:   Re: Missing symbols in LIBC ???
Message-ID:  <199911150045.QAA18717@vashon.polstra.com>
In-Reply-To: <Pine.BSF.3.96.991112094401.19368A-100000@Sunrise.UUCP>
References:  <Pine.BSF.3.96.991112094401.19368A-100000@Sunrise.UUCP>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSF.3.96.991112094401.19368A-100000@Sunrise.UUCP>,
Nils M Holm  <nmh@dialup.nacamar.de> wrote:
> 
> Hello!
> 
> I am currently porting my compiler to the release 3.3. My RT lib depends
> on /usr/lib/libc.a. When attempting to link a program, I get messages about
> unresolved externals (it DOES work on release 2.x).
> 
> I have seen that the C compiler no longer generates underscores on
> symbols by default and consequently, '_printf' in /usr/lib/libc.a has
> become simply 'printf'. There seem to exist kind of 'compatibility
> entries' for some functions, though.
> 
> However, (at least) the symbols _creat, _lseek, and _memmove are not
> defined in /usr/lib/libc.a. (creat, lseek, and memove are defined.)
> 
> Is this a bug or a feature? Will underscores vanish totally in the
> future? Do I have to create a workaround for the 3.x branch??

Yes, the underscores are gone permanently because we switched from
a.out to ELF as the object file format.

You can test for it at compile time with #ifdef __ELF__.

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "No matter how cynical I get, I just can't keep up."        -- Nora Ephron


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911150045.QAA18717>