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
..
2020-07-07 18:26:34 +09:30
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-06-20 15:53:37 +09:30
2020-01-01 18:42:54 +10:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2017-08-07 22:10:51 +09:30
2020-08-26 11:57:35 -07:00
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-07-13 22:03:59 +09:30
2020-07-13 22:03:59 +09:30
2020-07-13 22:03:59 +09:30
2020-07-13 22:03:59 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2017-07-12 19:31:26 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2018-09-17 23:17:14 +09:30
2020-07-07 18:26:34 +09:30
2020-01-01 18:42:54 +10:30
2019-09-11 13:45:18 +09:30
2020-04-21 15:10:52 +01:00
2020-04-21 15:10:52 +01:00
2020-07-07 18:26:34 +09:30
2020-04-21 15:10:52 +01:00
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2018-07-10 23:58:29 +09:30
2020-07-07 18:26:34 +09:30
2018-07-10 23:58:29 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2017-07-28 13:01:10 +01:00
2020-01-01 18:42:54 +10:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-06-20 15:53:37 +09:30
2017-07-19 13:11:59 +01:00
2017-07-19 13:11:59 +01:00
2017-07-19 13:11:59 +01:00
2020-07-07 18:26:34 +09:30
2019-05-04 17:23:18 +09:30
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-06-20 15:53:37 +09:30
2020-05-27 17:49:17 +01:00
2020-04-21 15:10:52 +01:00
2020-04-21 15:10:52 +01:00
2020-06-04 16:11:19 +09:30
2020-06-20 10:59:11 +09:30
2020-06-15 15:07:13 +09:30
2020-01-01 18:42:54 +10:30
2018-07-10 23:58:29 +09:30
2018-07-10 23:58:29 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-04-17 14:16:27 +01:00
2020-07-13 22:03:59 +09:30
2017-10-09 04:17:24 -07:00
2017-10-09 04:17:24 -07:00
2017-10-09 04:17:24 -07:00
2018-08-26 22:45:59 +09:30
2018-08-26 22:45:59 +09:30
2019-02-06 17:33:54 +10:30
2019-01-29 06:07:42 -08:00
2019-01-29 06:07:42 -08:00
2019-01-29 06:07:42 -08:00
2020-07-07 18:26:34 +09:30
2018-07-20 09:19:00 -07:00
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2020-07-07 18:26:34 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-08-25 19:31:57 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2018-01-11 17:35:34 +00:00
2020-07-07 18:26:34 +09:30
2020-07-13 22:03:59 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-08-27 12:58:27 +01:00
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2018-04-25 21:13:14 +00:00
2020-06-15 15:07:13 +09:30
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2018-12-07 08:30:43 -08:00
2020-06-15 15:07:13 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-07-07 18:26:34 +09:30
2020-01-01 18:42:54 +10:30
2020-07-07 21:57:13 +09:30
2020-01-01 18:42:54 +10:30
2020-07-07 18:26:34 +09:30
2018-09-14 20:22:56 +01:00
2018-09-14 20:22:56 +01:00
2020-06-20 15:53:37 +09:30
2020-07-07 18:26:34 +09:30
2020-06-15 15:07:13 +09:30
2020-01-01 18:42:54 +10:30
2020-07-07 18:26:34 +09:30