> 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