2 1. check the ARM EABI version--this works for versions 1 and 2.
3 2. use a more-intelligent approach to finding the symbol table, symbol-string
4 table, and the .dynamic section.
5 3. fix the determination of the host and ELF-file endianness
6 4. write the help screen
19 #include <sys/types.h>
25 /* Flag set by --verbose. This variable is global as it is accessed by the
26 macro INFO() in multiple compilation unites. */
28 /* Flag set by --quiet. This variable is global as it is accessed by the
29 macro PRINT() in multiple compilation unites. */
32 int main(int argc, char **argv)
34 char **lookup_dirs = NULL;
39 /* Do not issue INFO() statements before you call get_options() to set
40 the verbose flag as necessary.
43 int first = get_options(argc, argv,
52 FAILIF(1, "You must specify at least one input ELF file!\n");
55 /* Check to see whether the ELF library is current. */
56 FAILIF (elf_version(EV_CURRENT) == EV_NONE, "libelf is out of date!\n");
58 /* List symbol dependencies... */
59 lsd(&argv[first], argc - first,
60 list_needed_libs, print_info,
61 lookup_dirs, num_lookup_dirs);