Support -z relro on metag
authorAlan Modra <amodra@gmail.com>
Mon, 2 Jan 2017 12:13:15 +0000 (22:43 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Jan 2017 12:14:29 +0000 (22:44 +1030)
* emulparams/elf32metag.sh (COMMONPAGESIZE): Define.

ld/ChangeLog
ld/emulparams/elf32metag.sh

index 90a6d33..1fb60ed 100644 (file)
@@ -1,5 +1,9 @@
 2017-01-02  Alan Modra  <amodra@gmail.com>
 
+       * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
+
+2017-01-02  Alan Modra  <amodra@gmail.com>
+
        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.
index 861daba..2a1d072 100644 (file)
@@ -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