/*
** usage.c for elfsh
** 
** Started on  Fri Nov  2 15:16:30 2001 mayhem
** Last update Sun Mar 17 00:12:34 2002 mayhem
*/
#include "elfsh.h"




/* I wonder if the shortcuts are coolz */
void		usage(char *str)
{
  fprintf(stderr, 
	  "\n \t\t The ELF shell version 0.43a						\n\n"
	  "Syntax: elfsh -f filename [-elf -e] [-interp -i] [-p -phdr] [-hexa -X]         \n"
	  " [-got -g] [-shdr -s] [-rel -r] [-notes -n] [-dyn -d] [-dynsym -ds] [sym -s]   \n"
	  " [-stab -sb] [-ctors -ct] [-dtors -dt] [-sort -sr a|s]			\n\n"
	  " -f filename            : choose the file you want to load                     \n"
	  " -elf    [-e]           : display the ELF header                               \n"
	  " -interp [-i]           : display the .interp section		          \n"
	  " -phdr   [-p]           : display the program header table                     \n"
	  " -hexa   [-X]  regx     : display in hexa the requested object (regx required) \n"
	  " -got    [-g]  regx     : display the global offset table (GOT)	          \n"
	  " -shdr   [-s]  regx     : display the section header table                     \n"
	  " -rel    [-r]  regx     : display the relocation section(s) entries            \n"
	  " -notes  [-n]  regx     : display the notes section(s) entries	          \n"
	  " -dyn    [-d]  regx     : display the .dynamic section entries                 \n"
	  " -dynsym [-ds] regx     : display the dynamic symbol table entries             \n"
	  " -sym    [-st] regx     : display the symbol table entries                     \n"
	  " -stab   [-sb] regx     : display the stab section entries (trash ;)           \n"
	  " -ctors  [-ct] regx     : display the .ctors section                           \n"
	  " -dtors  [-dt] regx     : display the .dtors section                           \n"
	  " -sort   [-sr] {a,s}    : sort symbols by address (a) or by size (s)		\n\n" 
	  "Regular expressions may or may not be used ... C:-]				\n\n");
  exit(-1);
}







