(gdb) set args --strip-debug -R.note -R.comment libsasl2.a
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-18.104.22.168.1.so
Created attachment 463 [details]
Created attachment 464 [details]
Initialise obfd field of name_list structure.
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 ?
2005-04-25 Nick Clifton <firstname.lastname@example.org>
* objcopy.c (copy_archive): Initialise 'obfd' field of new
patch works. problem solved.
Patch applied - case closed