seems like eu-strip segfaults on any archive given it. a simple example, run
strip on the libar.a in the src/ subdir. current master with glibc-2.14 + gcc-4.6:
$ LD_LIBRARY_PATH=../libelf/ gdb --args ./strip libar.a
Reading symbols from /usr/local/src/elfutils/src/strip...done.
Starting program: /usr/local/src/elfutils/src/strip libar.a
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bcc7b3 in elf_end (elf=0x60f520) at elf_end.c:119
119 while (child->next != elf)
#0 0x00007ffff7bcc7b3 in elf_end (elf=0x60f520) at elf_end.c:119
#1 0x0000000000403273 in handle_elf (fd=0x7, elf=<optimized out>,
prefix=<optimized out>, mode=0x0, tvp=0x0) at strip.c:2036
#2 0x00000000004067d2 in handle_ar (fd=0x7, elf=0x60e050, prefix=<optimized out>,
fname=0x7fffffffd68c "libar.a", tvp=0x0) at strip.c:2111
#3 0x0000000000406b7d in process_file (fname=0x7fffffffd68c "libar.a") at
#4 0x000000000040233b in main (argc=0x2, argv=0x7fffffffd308) at strip.c:208
Show replies by date
Oh, yeah. I posted in the past about that, but I'd forgotten.
I'll have to look into it again.