From owner-freebsd-hackers Fri Oct 23 10:11:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA20974 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 10:11:45 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA20969 for ; Fri, 23 Oct 1998 10:11:44 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id KAA07769; Fri, 23 Oct 1998 10:11:13 -0700 (PDT) Date: Fri, 23 Oct 1998 10:11:13 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <199810231711.KAA07769@george.lbl.gov> To: jdp@polstra.com Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > No. You are not using objformat correctly, as I noticed from the > output you sent me in private mail. It is not correct to type > "objformat filename" to get the format of the file. Your libX11.a is > almost certainly in ELF format. > > You are not going to like hearing this, but: you need to slow down, > take a deep breath, stop frantically trying things, and study some > manual pages. The problems you've described have all been due to your > confusion about which tools (a.out or ELF) you're using, and how those > tools work. There is no manual page for objformat. BUt by looking the code, I see objformat just looking for environmrent or /etc/objformat to tell what format should be used by compiler and linker. It was confused when you told me to use objformat. By looking into /usr/lib, I see the default libraries are in elf format. The aout format libraries are in /usr/lib/aout which has missing X11/lib. So, a couple of questions for this ld issue: Will aout/{cc, ld} system co-exists with elf system in the future release? Will elf/ld be modified to behave like other regular ld (or aout/ld) not trying to resolve the unused symbols? Thanks, -Jin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message