pspsdk-1.0+beta2
psp-prxgen.c File Reference
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <ctype.h>
#include "types.h"
#include "elftypes.h"
#include "prxtypes.h"
Include dependency graph for psp-prxgen.c:

Functions

int process_args (int argc, char **argv)
void print_help (void)
unsigned char * load_file (const char *file)
int validate_header (unsigned char *data)
int load_sections (unsigned char *data)
int remove_weak_relocs (struct ElfSection *pReloc, struct ElfSection *pSymbol, struct ElfSection *pString)
int process_relocs (void)
void reindex_sections (void)
int load_elf (const char *elf)
int calculate_outsize (void)
void output_header (unsigned char *data)
void output_ph (unsigned char *data)
void output_alloc (unsigned char *data)
void output_sh (unsigned char *data)
void output_relocs (unsigned char *data)
void output_shstrtab (unsigned char *data)
int output_prx (const char *prxfile)
void free_data (void)
int main (int argc, char **argv)

Function Documentation

void free_data ( void  )

References free(), and NULL.

int load_elf ( const char *  elf)
unsigned char* load_file ( const char *  file)
int main ( int  argc,
char **  argv 
)
void output_alloc ( unsigned char *  data)

References i, ElfHeader::iShnum, iSize, memcpy(), and SHT_PROGBITS.

Referenced by output_prx().

void output_relocs ( unsigned char *  data)
void output_shstrtab ( unsigned char *  data)
void print_help ( void  )

References fprintf(), and stderr.

int process_args ( int  argc,
char **  argv 
)

References ch, fprintf(), getopt_long(), NULL, optind, and stderr.

void reindex_sections ( void  )
int remove_weak_relocs ( struct ElfSection pReloc,
struct ElfSection pSymbol,
struct ElfSection pString 
)