diff options
author | Claudiu Zissulescu <claziss@gmail.com> | 2023-09-25 17:02:55 +0300 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gmail.com> | 2023-09-25 17:02:55 +0300 |
commit | 7f2b40892ac65feddf8d532548f0fff0af01a3e9 (patch) | |
tree | e6574b36b26ac70f958fcd4bd49a59dbafe3b4e4 /ld/scripttempl | |
parent | 8784b6df8871c873a4cb14820ec8f6677fdf7838 (diff) | |
download | binutils-7f2b40892ac65feddf8d532548f0fff0af01a3e9.zip binutils-7f2b40892ac65feddf8d532548f0fff0af01a3e9.tar.gz binutils-7f2b40892ac65feddf8d532548f0fff0af01a3e9.tar.bz2 |
Revert "arc: Add new linker emulation and scripts for ARCv3 ISA."
This reverts commit 4deb1ee57fdb711cac6f36fed75b3c8cb5112d99.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elfarc.sc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/ld/scripttempl/elfarc.sc b/ld/scripttempl/elfarc.sc index 78cb0fa..1ae0248 100644 --- a/ld/scripttempl/elfarc.sc +++ b/ld/scripttempl/elfarc.sc @@ -394,10 +394,20 @@ 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. */ - ${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)));} + .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 = . ; + } EOF source_sh $srcdir/scripttempl/misc-sections.sc |