binutils-gdb/ld/testsuite/ld-pe
Jeremy Drake 514b4e191d Change the default characteristics of DLLs built by the linker to more secure settings.
PR 19011
	* emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define.
	(pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS.
	(add_options): Add options to disable DLL characteristics.
	(list_options): List the new options.
	(handle_options): Handle the new options.
	* emultempl/pep.em: Similar changes to above.
	(NT_EXE_IMAGE_BASE): Default to an address above 4G.
	(NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE,
	(NT_DLL_AUTO_IMAGE_MASK): Likewise.
	* ld.texi: Document the new options.
	* pe-dll.c (pe_dll_enable_reloc_section): Change to default to
	true.
	(generate_reloc): Do nothing if there is no reloc section.
	(pe_exe_fill_sections): Only assign the reloc section contents if
	the section exists.
	* testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to
	the .secrel32 tests.
	* testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets.
	* NEWS: Mention the change in DLL generation.
2020-08-27 12:58:27 +01:00
..
aligncomm-1.c
aligncomm-2.c
aligncomm-3.c
aligncomm-4.c
aligncomm.d
basefile1.s
cfi32.d
cfi.d
cfia.s
cfib.s
direct2_client.c
direct2_dll.c
direct2_dll.def
direct_client.c
direct_dll.c
export_dynamic_warning.d
export_dynamic_warning.s
exports64.d
exports.d
exports.s
image_size.d
image_size.s
image_size.t
longsecn-1.d
longsecn-2.d
longsecn-3.d
longsecn-4.d
longsecn-5.d
longsecn.d
longsecn.s
non-c-lang-syms.d
non-c-lang-syms.s
orphan_nu.d
orphan.d
orphana_nu.s
orphana.s
orphanb.s
orphand.s
orphane.s
pe-compile.exp
pe-run2.exp
pe-run.exp
pe.exp
pr19803.d
pr19803.e
pr19803.s
secrel1.s
secrel2.s
secrel_64.d
secrel.d
tlssec32.d
tlssec64.d
tlssec.s
vers-script-1.d
vers-script-1.ver
vers-script-2.d
vers-script-2.ver
vers-script-3.d
vers-script-3.ver
vers-script-4.d
vers-script-4.ver
vers-script-dll.c
weakdef-1.d
weakdef-1.s