aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2023-09-25 10:55:51 +0300
committerClaudiu Zissulescu <claziss@gmail.com>2023-09-25 10:55:51 +0300
commit4deb1ee57fdb711cac6f36fed75b3c8cb5112d99 (patch)
tree853488e823b1e58dfa4ada0d10672889e4dce589 /ld/scripttempl
parent06e8d9861d16c5b7e6920ad0e89889ccf45c575a (diff)
downloadbinutils-4deb1ee57fdb711cac6f36fed75b3c8cb5112d99.zip
binutils-4deb1ee57fdb711cac6f36fed75b3c8cb5112d99.tar.gz
binutils-4deb1ee57fdb711cac6f36fed75b3c8cb5112d99.tar.bz2
arc: Add new linker emulation and scripts for ARCv3 ISA.
Add ARCv3's linker bits. Remove obsolete tests. ld/ xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com> * ld/Makefile.am: Add ARC64 targets. * ld/configure.tgt: Likewise. * ld/Makefile.in: Regenerate. * ld/emulparams/arc64elf32.sh: New file. * ld/emulparams/arc64elf64.sh: Likewise. * ld/emulparams/arc64linux32.sh: Likewise. * ld/emulparams/arc64linux64.sh: Likewise. * ld/scripttempl/elfarc.sc: Update stack and heap definitions. * ld/testsuite/ld-arc/got-weak.d: Deleted file. * ld/testsuite/ld-arc/got-weak.s: Likewise. Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elfarc.sc18
1 files changed, 4 insertions, 14 deletions
diff --git a/ld/scripttempl/elfarc.sc b/ld/scripttempl/elfarc.sc
index 1ae0248..78cb0fa 100644
--- a/ld/scripttempl/elfarc.sc
+++ b/ld/scripttempl/elfarc.sc
@@ -394,20 +394,10 @@ test -n "${RELOCATING}" && cat <<EOF
The options appear in the wrong order to do this with a single symbol -
ldflags comes after flags injected with per-file stanzas, and thus
the setting from ldflags prevails. */
- .heap :
- {
- __start_heap = . ;
- . = . + (DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : (DEFINED(__DEFAULT_HEAP_SIZE) ? __DEFAULT_HEAP_SIZE : 20k)) ;
- __end_heap = . ;
- }
-
- . = ALIGN(0x8);
- .stack :
- {
- __stack = . ;
- . = . + (DEFINED(__STACK_SIZE) ? __STACK_SIZE : (DEFINED(__DEFAULT_STACK_SIZE) ? __DEFAULT_STACK_SIZE : 64k)) ;
- __stack_top = . ;
- }
+ ${RELOCATING+. = ALIGN(${ALIGNMENT});}
+ ${RELOCATING+ PROVIDE (__start_heap = .) ; }
+ ${RELOCATING+ PROVIDE (__stack_top = . + (DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : (DEFINED(__DEFAULT_HEAP_SIZE) ? __DEFAULT_HEAP_SIZE : 20k)) + (DEFINED(__STACK_SIZE) ? __STACK_SIZE : 64k));}
+ ${RELOCATING+ PROVIDE (__end_heap = . + (DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : (DEFINED(__DEFAULT_STACK_SIZE) ? __DEFAULT_STACK_SIZE : 20k)));}
EOF
source_sh $srcdir/scripttempl/misc-sections.sc