🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1277

PLEASE help me with rld! PLEASE! PLEASE! PLEASE! PLEASE! PLEASE!

#1277
From: Frank Hartlep
Date: Sat, 22 Aug 1992 13:28
45 lines
1689 bytes
I've asked this already and nobody replied. But I can't believe there's
nobody on this big, big net who knows how to use rld.

Take a look at this code ...


--- loader.c
#include <rld.h>
#include <stdio.h>

main ()
{
        char    *ObjectFiles [] = {"to_be_loaded.o", NULL};
        int     Status;

        rld_load_basefile (NULL, "loader.o");
        Status = rld_load (NULL, NULL, ObjectFiles, NULL);
        fprintf (stderr, "rld returned %d", Status);
        LoadedFunction ("It works!");
}

---- to_be_loaded.c
#include <stdio.h>

LoadedFunction (char *Text)
{
        fprintf (stderr, "%s", Text);
}


---  Compiled with this:
cc -g -Wall -c loader.c
ld -o loader.gdb loader.o /lib/crt0.o /lib/libsys_s.a -U _LoadedFunction
cc -g -Wall -c to_be_loaded.c


... and PLEASE!  PLEASE!  PLEASE!  PLEASE! tell me what's wrong with it.
Loader should load to_be_loaded.o and execute LoadedFunction.
Sounds easy, but why does it fail in rld_load_basefile (with a
floating point exception in NXCreateZone, as the debugger tells me)???

ANY info is welcome !

Thanks,
Frank
Technical Details
Message-ID: <HRA6NUH@mailgzrz.tu-berlin.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!mauriti

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!mauriti
From: mauriti@cs.tu-berlin.de (Frank Hartlep)
Subject: PLEASE help me with rld! PLEASE! PLEASE! PLEASE! PLEASE! PLEASE! 
Message-ID: <HRA6NUH@mailgzrz.tu-berlin.de>
Keywords: PLEASE! PLEASE! PLEASE! PLEASE! PLEASE!  PLEASE!  PLEASE!  PLEASE!
Sender: news@mailgzrz.tu-berlin.de (News Manager)
Nntp-Posting-Host: beauvoir.cs.tu-berlin.de
Organization: Technical University of Berlin, Germany
Date: Sat, 22 Aug 1992 13:28:51 GMT
Lines: 45