From 576438f0fa3ecbe0b49b3bcc2f028d586d198247 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 19 Aug 2016 09:27:52 +0100 Subject: Enable relro by default for AArch64, ARM and SCORE. ld * emultempl/aarch64elf.em (before_parse): Initialise the relro field in the link_info structure. * emultempl/armelf.em (before_parse): Likewise. * emultempl/linux.em (before_parse): Likewise. * emultempl/scoreelf.em (before_parse): Likewise. --- ld/emultempl/linux.em | 1 + 1 file changed, 1 insertion(+) (limited to 'ld/emultempl/linux.em') diff --git a/ld/emultempl/linux.em b/ld/emultempl/linux.em index c28e978..64a9130 100644 --- a/ld/emultempl/linux.em +++ b/ld/emultempl/linux.em @@ -50,6 +50,7 @@ gld${EMULATION_NAME}_before_parse (void) ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`); input_flags.dynamic = TRUE; config.has_shared = TRUE; + link_info.relro = DEFAULT_LD_Z_RELRO; } /* Try to open a dynamic archive. This is where we know that Linux -- cgit v1.1