Import a patch from the mainline to fix a seg-fault in the BFD library: