tools/elf4rom/libs/dwarf-20071209/dwarfdump/README
changeset 34 92d87f2e53c2
equal deleted inserted replaced
33:1af5c1be89f8 34:92d87f2e53c2
       
     1 
       
     2 To build dwarfdump, first build libdwarf in the neighboring
       
     3 directory then type
       
     4 	./configure
       
     5 	make
       
     6 
       
     7 To use dwarf or libdwarf, you may want to install dwarf.h and
       
     8 libdwarf.h somewhere convenient, and you may need the libdwarf
       
     9 in the accompanying libdwarf directory
       
    10 
       
    11 If your headers or libelf/libdwarf are not in the expected places,
       
    12 use the configure script to access them (and to add other ld
       
    13 or C flags).
       
    14 For example, using csh syntax:
       
    15 	setenv PRIVATE_LIBDIR /home/davea/lib
       
    16 	./configure LDFLAGS="-L$PRIVATE_LIBDIR" \
       
    17 		CPPFLAGS="-I/home/davea/inc" CFLAGS="-I/home/davea/inc"
       
    18 Set both CFLAGS and CPPFLAGS so that configure works properly.
       
    19 
       
    20 If your primary target cpu architecture ( of objects that you are using
       
    21 dwarfdump on) is not MIPS, you will probably want to
       
    22 add   -DDWARFDUMP_TURN_OFF_MIPS_REG_NAMES=1
       
    23 to CPPFLAGS and CFLAGS  to avoid using misleading 
       
    24 register names.  See print_sections.c.
       
    25 
       
    26 
       
    27 If $PRIVATE_LIBDIR  has both libelf.so and libelf.a, the libelf.so
       
    28 will be picked up and 
       
    29   "./tag_tree_build: error while loading shared libraries: 
       
    30 	libelf.so.0: cannot open shared object file: 
       
    31 	No such file or directory"
       
    32 will probably result.
       
    33 Either: remove libelf.so.* from your $PRIVATE_LIBDIR
       
    34 or set LD_LIBRARY_PATH to $PRIVATE_LIBDIR, or use LDFLAGS to
       
    35 set rpath.   Much simpler all around to ensure that $PRIVATE_LIBDIR
       
    36 only has archive libelf, not shared-library libelf.
       
    37 
       
    38 
       
    39 David Anderson.  davea@sgi.com
       
    40 
       
    41 $Source: /plroot/cmplrs.src/v7.4.5m/.RCS/PL/dwarfdump/RCS/README,v $
       
    42 $Revision: 1.3 $
       
    43 $Date: 2006/03/29 23:26:01 $