From 964c54b7cce60f26bbc6a4346b9bf323eac683d3 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 8 Nov 2018 11:49:05 +0900 Subject: [PATCH] Revert "Enable relro by default for AArch64, ARM and SCORE." This reverts commit 12f75b84506d7820209fc3a919eac9d7991efd74. IDLE memory size is increased by GNU_RELRO section. Change-Id: Id8add9ecf47ecd23e6c8b0eccbb84fbce7ee3b2e --- ld/ChangeLog | 8 -------- ld/emultempl/aarch64elf.em | 1 - ld/emultempl/armelf.em | 1 - ld/emultempl/linux.em | 1 - ld/emultempl/scoreelf.em | 1 - 5 files changed, 12 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index f9ba9c1..21305c3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -9,14 +9,6 @@ * testsuite/ld-x86-64/pr20830.s: Likewise. -2016-08-19 Nick Clifton - - * 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. - 2016-08-03 Tristan Gingold * configure: Regenerate. diff --git a/ld/emultempl/aarch64elf.em b/ld/emultempl/aarch64elf.em index 9f2c349..a17553a 100644 --- a/ld/emultempl/aarch64elf.em +++ b/ld/emultempl/aarch64elf.em @@ -43,7 +43,6 @@ gld${EMULATION_NAME}_before_parse (void) input_flags.dynamic = ${DYNAMIC_LINK-TRUE}; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`; - link_info.relro = DEFAULT_LD_Z_RELRO; } static void diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 03e8fe9..6074824 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -52,7 +52,6 @@ gld${EMULATION_NAME}_before_parse (void) input_flags.dynamic = ${DYNAMIC_LINK-TRUE}; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`; - link_info.relro = DEFAULT_LD_Z_RELRO; } static void diff --git a/ld/emultempl/linux.em b/ld/emultempl/linux.em index 64a9130..c28e978 100644 --- a/ld/emultempl/linux.em +++ b/ld/emultempl/linux.em @@ -50,7 +50,6 @@ 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 diff --git a/ld/emultempl/scoreelf.em b/ld/emultempl/scoreelf.em index 7df7f5f..6433365 100644 --- a/ld/emultempl/scoreelf.em +++ b/ld/emultempl/scoreelf.em @@ -39,7 +39,6 @@ gld${EMULATION_NAME}_before_parse (void) input_flags.dynamic = ${DYNAMIC_LINK-TRUE}; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`; - link_info.relro = DEFAULT_LD_Z_RELRO; } static void -- 2.7.4