[PATCH] readelf: prevent segfault

2011-03-21 Thread Marek Polacek
Sometimes, e.g. when malformed ELF file, the ebl_dynamic_tag_name() returns NULL which causes puts() to segfault immediately without ceremony. Fixed thusly. Tested on x86_64. Ok for trunk? Signed-off-by: Marek Polacek --- src/ChangeLog |4 src/readelf.c |6 -- 2 files change

Re: [PATCH] ebldynamictagname: fix typo

2011-03-21 Thread Mark Wielaard
On Mon, 2011-03-21 at 23:59 +0100, Marek Polacek wrote: > In libebl/ebldynamictagname.c there should probably be "TLSDESC_GOT" instead > of > "TLSDESC_DOT". In elf.h we have #defined DT_TLSDESC_GOT. Patch is available > in > branch mpolacek/tlsdesc. Tested on x86_64, ok for trunk? Looks fine

[PATCH] ebldynamictagname: fix typo

2011-03-21 Thread Marek Polacek
In libebl/ebldynamictagname.c there should probably be "TLSDESC_GOT" instead of "TLSDESC_DOT". In elf.h we have #defined DT_TLSDESC_GOT. Patch is available in branch mpolacek/tlsdesc. Tested on x86_64, ok for trunk? Marek ___ elfutils-devel ma