/*
** elfsh.c for elfsh
** 
** Started on  Wed Feb 21 22:02:36 2001 mayhem
** Last update Sun Mar 31 17:17:12 2002 mayhem
*/
#include "elfsh.h"




/* Open the file , get the options, and print what the user want */
int		main(int argc, char **argv)
{
  Elfsh32_Obj	*file;
  argv_t	args;

  get_options(argc, argv, &args);

  if ((file = elfsh_load_obj(args.filename)) == 0)
    RET(-1);

  CHECK_OPTION(sht);
  CHECK_OPTION(elf);
  CHECK_OPTION(interp);
  CHECK_OPTION(pht);
  CHECK_OPTION(got);
  CHECK_OPTION(ctors);
  CHECK_OPTION(dtors);
  CHECK_OPTION(notes);
  CHECK_OPTION(rel);
  CHECK_OPTION(sym);
  CHECK_OPTION(dyn);
  CHECK_OPTION(dynsym);
  CHECK_OPTION(stab);
  //CHECK_OPTION(disasm);
  CHECK_OPTION(hexa);

  putchar('\n');

  elfsh_unload_obj(file);
  return (0);


}










