10 lines
5.2 KiB
Plaintext
10 lines
5.2 KiB
Plaintext
The dld-link SUBR opcode
|
||
This opcode links in a relocaltable object file or a library file. The return value is an error code.
|
||
|
||
(SUBR DLD-LINK path)
|
||
|
||
Path is the path of the file to be loaded expressed as a string.
|
||
|
||
Return-Code is a FIXP cell into which DLD-LINK places a return value. See below for possible values.
|
||
Opcode is #o250
|
||
The dld-unlink-by-file SUBR opcode
|
||
|
||
This opcode unlinks in a relocaltable object file or a library file. The return value is an error code.
|
||
|
||
(SUBR DLD-UNLINK-BY-FILE string hard-flag)
|
||
|
||
String is the name of the file to be unlinked.
|
||
Hard-flag is zero if the file shouldn't be unlinked if it is referenced by others. A nonzero value means that the file should be unlinked regardless of other references.
|
||
|
||
Return-Code is a FIXP cell. See below for possible values.
|
||
Opcode is #o251
|
||
The dld-unlink-by-symbol SUBR opcode
|
||
This opcode unlinks in a relocaltable object file or a library file. The return value is an error code.
|
||
|
||
(SUBR DLD-UNLINK-BY-SYMBOL string)
|
||
|
||
String is the name of a symbol containde in the file to be unlinked.
|
||
Hard-flag is zero if the file shouldn't be unlinked if it is referenced by others. A nonzero value means that the file should be unlinked regardless of other references.
|
||
|
||
Return-Code is a FIXP cell. See below for possible values.
|
||
|
||
Opcode is #o252
|
||
The dld-get-symbol SUBR opcode
|
||
This opcode returns a pointer to a symbol in C-space.
|
||
|
||
(SUBR DLD-GET-SYMBOL string)
|
||
|
||
String is the name of a symbol.
|
||
|
||
Opcode is #o253
|
||
The dld-get-func SUBR opcode
|
||
This opcode returns a pointer to a function in C-space.
|
||
|
||
(SUBR DLD-GET-FUNC string)
|
||
|
||
String is the name of a function.
|
||
|
||
Opcode is #o254
|
||
The dld-function-executable-p SUBR opcode
|
||
This opcode returns 0 if the function contains undefined references.
|
||
|
||
(SUBR DLD-FUNCTION-EXECUTABLE-P string)
|
||
|
||
String is the name of a function.
|
||
|
||
Opcode is #o255
|
||
|
||
The dld-list-undefined-sym SUBR opcode
|
||
This opcode returns returns a list of the undefined symbols in the system.
|
||
|
||
(SUBR DLD-LIST-UNDEFINED-SYM)
|
||
|
||
Opcode is #o256
|
||
|
||
|
||
The dld-create-reference SUBR opcode
|
||
This opcode forces the system to load the library containing this symbol.
|
||
|
||
(SUBR DLD-CREATE-REFERENCE string)
|
||
|
||
0 Successful call and return.
|
||
-1 DLD-ENOFILE cannot open file.
|
||
-2 DLD-EBADMAGIC bad magic number.
|
||
-3 DLD-EBADHEADER failiure reading header.
|
||
-4 DLD-ENOTEXT premature end of file in text section.
|
||
-5 DLD-ENOSYSMBOLS premature end of file in symbol section.
|
||
-6 DLD-ENOSTRINGS bad string table.
|
||
-7 DLD-ENOTEXTRELOC premature end of file in text relocation.
|
||
-8 DLD-ENODATA premature end of file in data section.
|
||
-9 DLD-ENODATARELOC premature end of file in data relocation.
|
||
-10 DLD-EMULTDEFS multiple definitions of symbol.
|
||
-11 DLD-EBADLIBRARY malformed library archive.
|
||
-12 DLD-EBADCOMMON common block not supported.
|
||
-13 DLD-EBADOBJECT malformed input file.
|
||
-14 DLD-EBADRELOC bad relocation info.
|
||
-15 DLD-ENOMEMORY vmem exhausted.
|
||
-16 DLD-EUNDEFSYM undefined symbol.
|
||
|