Skip to content
Snippets Groups Projects
Commit 790147a9 authored by H.J. Lu's avatar H.J. Lu
Browse files

Pass --disable-reloc-section on PE targets for PR 25662 test

Pass --disable-reloc-section on PE targets for PR 25662 test since

commit 514b4e19

Author: Jeremy Drake <sourceware-bugzilla@jdrake.com>
Date:   Thu Aug 27 12:58:27 2020 +0100

    Change the default characteristics of DLLs built by the linker to more secure settings.

defaulted to --enable-reloc-section.

	PR ld/26587
	* testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
	to ld on PE targets for PR 25662 test.
parent d706b69e
No related branches found
No related tags found
No related merge requests found
2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26587
* testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
to ld on PE targets for PR 25662 test.
2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
Kuan-Lin Chen <kuanlinchentw@gmail.com>
......
......@@ -1354,7 +1354,12 @@ if { [istarget pdp11-*-*] } {
set src "pr25662.s"
}
set ldflags "-T$srcdir/$subdir/pr25662.ld"
if { [istarget *-*-cygwin] || [istarget *-*-mingw*] } {
append ldflags " --disable-reloc-section"
}
#xcoff doesn't support arbitrary sections
if { ![is_xcoff_format] } {
objcopy_test "pr25662" $src executable "" "-T$srcdir/$subdir/pr25662.ld"
objcopy_test "pr25662" $src executable "" $ldflags
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment