Index: src/bfd/coff-i386.c =================================================================== --- src.orig/bfd/coff-i386.c 2010-03-30 14:32:15.000000000 +0200 +++ src/bfd/coff-i386.c 2010-03-30 14:36:23.616146000 +0200 @@ -195,7 +195,8 @@ static bfd_boolean in_reloc_p (abfd, how bfd * abfd ATTRIBUTE_UNUSED; reloc_howto_type *howto; { - return ! howto->pc_relative && howto->type != R_IMAGEBASE; + return ! howto->pc_relative && howto->type != R_IMAGEBASE + && howto->type != R_SECREL32; } #endif /* COFF_WITH_PE */ Index: src/bfd/coff-x86_64.c =================================================================== --- src.orig/bfd/coff-x86_64.c 2010-03-30 14:32:17.000000000 +0200 +++ src/bfd/coff-x86_64.c 2010-03-30 14:37:18.828456800 +0200 @@ -192,7 +192,8 @@ coff_amd64_reloc (bfd *abfd, static bfd_boolean in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) { - return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE; + return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE + && howto->type != R_AMD64_SECREL; } #endif /* COFF_WITH_PE */ Index: src/binutils/testsuite/binutils-all/objcopy.exp =================================================================== --- src.orig/binutils/testsuite/binutils-all/objcopy.exp 2010-03-22 12:44:29.000000000 +0100 +++ src/binutils/testsuite/binutils-all/objcopy.exp 2010-03-30 15:31:27.209778400 +0200 @@ -583,7 +583,7 @@ proc copy_executable { prog flags test1 setup_xfail "arm*-*-pe" setup_xfail "thumb*-*-coff" setup_xfail "thumb*-*-pe" - setup_xfail "x86_64-*-mingw*" + setup_xfail "*-*-mingw*" setup_xfail "*-*-cygwin*" fail $test1