FreeBASIC  0.91.0
objinfo.bas File Reference
#include "objinfo.bi"
#include "fb.bi"
#include "hlp.bi"
Include dependency graph for objinfo.bas:

Go to the source code of this file.

Data Structures

class  DATABUFFER
 
class  OBJINFOPARSERCTX
 
class  ELF32_H
 
class  ELF64_H
 
class  ELF32_SH
 
class  ELF64_SH
 
class  COFF_H
 
class  COFF_SH
 
class  AR_H
 
class  ENTRYINFO
 

Macros

#define INFO(s)   /* print "objinfo: " + s */
 
#define INFO(s)
 
#define ELFLOADINGCODE(ELF_H, ELF_SH, ELF_MAGIC_4, ELF_MACHINE)
 

Enumerations

enum  { FB_INFOSEC_EOL = 0, FB_INFOSEC_LIB, FB_INFOSEC_PTH, FB_INFOSEC_CMD }
 

Functions

private sub hLoadFbctinfFromCOFF (byval_as_ushort magic)
 
private function_as_zstring_ptr hLoadArString (byval_as_ubyte_ptr p, byval_as_integer length)
 
private sub hLoadObjFromAr ()
 
private sub hLoadFile (byref_as_string filename, byval_as_DATABUFFER_ptr buf)
 
private sub hLoadFbctinfFromObj ()
 
private sub hResetBuffers ()
 
private sub objinfoInit (byref_as_string filename)
 
sub objinfoReadObj (byref_as_string objfile)
 
sub objinfoReadLibfile (byref_as_string libfile)
 
sub objinfoReadLib (byref_as_string libname, byval_as_TLIST_ptr libpaths)
 
private function_as_zstring_ptr hGetNextString ()
 
function_as_integer objinfoReadNext (byref_as_string dat)
 
function_as_zstring_ptr objinfoGetFilename ()
 
sub objinfoReadEnd ()
 
function_as_zstring_ptr objinfoEncode (byval_as_integer entry)
 

Variables

DATABUFFER ardata
 
DATABUFFER objdata
 
DATABUFFER fbctinf
 
OBJINFOPARSERCTX parser
 
zstring fbctinfname = ".fbctinf"
 
ubyte elfmagic [to+1] =
 
const VAR ET_REL = 1
 
const VAR EM_386 = 3
 
const VAR EM_X86_64 = 62
 
ubyte armagic [to+1] =
 
ENTRYINFO entries [to[OBJINFO__COUNT+1]+1] =
 

Macro Definition Documentation

#define ELFLOADINGCODE (   ELF_H,
  ELF_SH,
  ELF_MAGIC_4,
  ELF_MACHINE 
)

Definition at line 972 of file objinfo.bas.

#define INFO (   s)    /* print "objinfo: " + s */

Definition at line 97 of file objinfo.bas.

#define INFO (   s)

Definition at line 97 of file objinfo.bas.

Enumeration Type Documentation

anonymous enum
Enumerator
FB_INFOSEC_EOL 
FB_INFOSEC_LIB 
FB_INFOSEC_PTH 
FB_INFOSEC_CMD 

Definition at line 875 of file objinfo.bas.

Function Documentation

private function_as_zstring_ptr hGetNextString ( )

Definition at line 1507 of file objinfo.bas.

Here is the caller graph for this function:

private function_as_zstring_ptr hLoadArString ( byval_as_ubyte_ptr  p,
byval_as_integer  length 
)

Definition at line 1245 of file objinfo.bas.

Here is the caller graph for this function:

private sub hLoadFbctinfFromCOFF ( byval_as_ushort  magic)

Definition at line 1160 of file objinfo.bas.

Here is the caller graph for this function:

private sub hLoadFbctinfFromObj ( )

Definition at line 1378 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hLoadFile ( byref_as_string  filename,
byval_as_DATABUFFER_ptr  buf 
)

Definition at line 1347 of file objinfo.bas.

Here is the caller graph for this function:

private sub hLoadObjFromAr ( )

Definition at line 1277 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hResetBuffers ( )

Definition at line 1436 of file objinfo.bas.

Here is the caller graph for this function:

function_as_zstring_ptr objinfoEncode ( byval_as_integer  entry)

Definition at line 1624 of file objinfo.bas.

Here is the caller graph for this function:

function_as_zstring_ptr objinfoGetFilename ( )

Definition at line 1607 of file objinfo.bas.

Here is the caller graph for this function:

private sub objinfoInit ( byref_as_string  filename)

Definition at line 1445 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub objinfoReadEnd ( )

Definition at line 1611 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub objinfoReadLib ( byref_as_string  libname,
byval_as_TLIST_ptr  libpaths 
)

Definition at line 1480 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub objinfoReadLibfile ( byref_as_string  libfile)

Definition at line 1464 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer objinfoReadNext ( byref_as_string  dat)

Definition at line 1525 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub objinfoReadObj ( byref_as_string  objfile)

Definition at line 1453 of file objinfo.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

DATABUFFER ardata

Definition at line 871 of file objinfo.bas.

ubyte armagic[to+1] =

Definition at line 1238 of file objinfo.bas.

ubyte elfmagic[to+1] =

Definition at line 930 of file objinfo.bas.

const VAR EM_386 = 3

Definition at line 937 of file objinfo.bas.

const VAR EM_X86_64 = 62

Definition at line 938 of file objinfo.bas.

ENTRYINFO entries[to[OBJINFO__COUNT+1]+1] =

Definition at line 1428 of file objinfo.bas.

const VAR ET_REL = 1

Definition at line 936 of file objinfo.bas.

DATABUFFER fbctinf

Definition at line 871 of file objinfo.bas.

zstring fbctinfname = ".fbctinf"

Definition at line 894 of file objinfo.bas.

DATABUFFER objdata

Definition at line 871 of file objinfo.bas.

Definition at line 889 of file objinfo.bas.