binutils-gdb/ld/emulparams/elf32metag.sh
Alan Modra 64859e1487 Support -z relro on metag
* emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
2017-01-02 22:44:29 +10:30

32 lines
564 B
Bash

MACHINE=
SCRIPT_NAME=elf
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
OUTPUT_FORMAT="elf32-metag"
TEXT_START_ADDR=0x10005000
ARCH=metag
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ENTRY=__start
NOP=0xa0fffffe
EXTRA_EM_FILE=metagelf
USER_LABEL_PREFIX=_
OTHER_SECTIONS="
.core_text 0x80000000 :
{
*(.core_text)
}
.core_data 0x82000000 :
{
*(.core_data)
*(.core_rodata)
}
.internal_memory 0xe0200000 :
{
*(.internal_text)
*(.internal_data)
*(.internal_rodata)
}
"