(gdb) set args --strip-debug -R.note -R.comment libsasl2.a (gdb) r Starting program: /usr/bin/strip --strip-debug -R.note -R.comment libsasl2.a /usr/bin/strip: st8CY7QL/libpgsql.la: Invalid operation Program received signal SIGSEGV, Segmentation fault. 0x40039561 in bfd_close () from /usr/lib/libbfd-2.16.90.0.1.so
Created attachment 463 [details] testcase
Created attachment 464 [details] Initialise obfd field of name_list structure.
Hi Pawe³, The seg fault was caused by a silly fault in the name_list handling code inside the copy_archive() function. The 'obfd' field was not being initialised to a proper value. The attached patch fixes this problem and allows your test case to run, although it still generates the "Invalid operation" message. Do you have any problems with this patch or shall I close this PR ? Cheers Nick binutils/ChangeLog 2005-04-25 Nick Clifton <nickc@redhat.com> PR872 * objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure.
patch works. problem solved.
Patch applied - case closed