From 64859e1487e0ce1e5c430238dd731123371e7a15 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 2 Jan 2017 22:43:15 +1030 Subject: [PATCH] Support -z relro on metag * emulparams/elf32metag.sh (COMMONPAGESIZE): Define. --- ld/ChangeLog | 4 ++++ ld/emulparams/elf32metag.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 90a6d33..1fb60ed 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,9 @@ 2017-01-02 Alan Modra + * emulparams/elf32metag.sh (COMMONPAGESIZE): Define. + +2017-01-02 Alan Modra + PR ld/21000 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define. (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define. diff --git a/ld/emulparams/elf32metag.sh b/ld/emulparams/elf32metag.sh index 861daba..2a1d072 100644 --- a/ld/emulparams/elf32metag.sh +++ b/ld/emulparams/elf32metag.sh @@ -7,6 +7,7 @@ OUTPUT_FORMAT="elf32-metag" TEXT_START_ADDR=0x10005000 ARCH=metag MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" ENTRY=__start NOP=0xa0fffffe EXTRA_EM_FILE=metagelf -- 2.7.4