* [9fans] Can the 8l linker read ELF object files?
@ 2014-10-27 22:23 Ryan Gonzalez
0 siblings, 0 replies; only message in thread
From: Ryan Gonzalez @ 2014-10-27 22:23 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 756 bytes --]
I have a simple C program:
#include <lib9.h>
void main()
{
print("abc\n");
exits(nil);
}
I built it under Linux using ken-cc (the Linux port of the Plan 9
compilers). However, this happens when I try to link it:
8l -L/home/ryan/stuff/ken-cc/Linux/386/lib -l9 -o test test.8
main: undefined: print
main: undefined: exits
Evidently, 8l isn't picking up the ELF objects in lib9.a. Can I make it
read them somehow?
--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
"It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. -
srean
Check out my website: http://kirbyfan64.github.io/
[-- Attachment #2: Type: text/html, Size: 1124 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-27 22:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 22:23 [9fans] Can the 8l linker read ELF object files? Ryan Gonzalez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).