mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
724e34c6f7
* emulparams/elf_nacl.sh (nacl_rodata_addr): Don't add in SIZEOF_HEADERS here; elf.sc does it already.
15 lines
361 B
Bash
15 lines
361 B
Bash
ENABLE_INITFINI_ARRAY=yes
|
|
SEPARATE_CODE=yes
|
|
TEXT_START_ADDR=0x20000
|
|
NACL_RODATA_DISTANCE=0x10000000
|
|
|
|
nacl_rodata_addr()
|
|
{
|
|
nacl_text_addr="SEGMENT_START(\"text-segment\", $1)"
|
|
nacl_rodata_addr="$nacl_text_addr + ${NACL_RODATA_DISTANCE}"
|
|
echo "$nacl_rodata_addr"
|
|
}
|
|
|
|
RODATA_ADDR=`nacl_rodata_addr "${TEXT_START_ADDR}"`
|
|
SHLIB_RODATA_ADDR=`nacl_rodata_addr 0`
|