|
54 | 54 | # combination of .init sections.
|
55 | 55 | # FINI_START, FINI_END - statements just before and just after
|
56 | 56 | # combination of .fini sections.
|
57 |
| -# STACK_ADDR - start of a .stack section. |
58 | 57 | # OTHER_SYMBOLS - symbols to place right at the end of the script.
|
59 | 58 | # ETEXT_NAME - name of a symbol for the end of the text section,
|
60 | 59 | # normally etext.
|
@@ -242,11 +241,6 @@ DTOR=".dtors ADDR(.ctors) + SIZEOF(.ctors) ${CONSTRUCTING-0} :
|
242 | 241 | KEEP (*(.dtors))
|
243 | 242 | ${CONSTRUCTING+${DTOR_END}}
|
244 | 243 | } /*> INTERNAL_RAM*/ "
|
245 |
| -STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : |
246 |
| - { |
247 |
| - ${RELOCATING+___stack = .;} |
248 |
| - *(.stack) |
249 |
| - }" |
250 | 244 |
|
251 | 245 | # If this is for an embedded system, don't add SIZEOF_HEADERS.
|
252 | 246 | if [ -z "$EMBEDDED" ]; then
|
@@ -608,6 +602,12 @@ cat <<EOF
|
608 | 602 | ${RELOCATING+${OTHER_END_SYMBOLS}}
|
609 | 603 | ${RELOCATING+${END_SYMBOLS-${USER_LABEL_PREFIX}_end = .; PROVIDE (${USER_LABEL_PREFIX}end = .);}}
|
610 | 604 | ${RELOCATING+${DATA_SEGMENT_END}}
|
| 605 | + |
| 606 | + PROVIDE ( __stack_start_ = ORIGIN(EXTERNAL_DRAM_0) + __PROG_SIZE_FOR_CORE__ * __CORE_NUM_ + __PROG_SIZE_FOR_CORE__ - 0x10) ; |
| 607 | + .stack ${RELOCATING+__stack_start_} : { ${RELOCATING+___stack = .;} *(.stack) } |
| 608 | + |
| 609 | + PROVIDE ( ___heap_start = ORIGIN(EXTERNAL_DRAM_1) + __HEAP_SIZE_FOR_CORE__ * __CORE_NUM_ ); |
| 610 | + PROVIDE ( ___heap_end = ORIGIN(EXTERNAL_DRAM_1) + __HEAP_SIZE_FOR_CORE__ * __CORE_NUM_ + __HEAP_SIZE_FOR_CORE__ - 4 ); |
611 | 611 | EOF
|
612 | 612 |
|
613 | 613 | if test -n "${NON_ALLOC_DYN}"; then
|
|
640 | 640 | . $srcdir/scripttempl/DWARF.sc
|
641 | 641 |
|
642 | 642 | cat <<EOF
|
643 |
| - ${TINY_DATA_SECTION} |
644 |
| - ${TINY_BSS_SECTION} |
645 |
| - |
646 |
| - /*${STACK_ADDR+${STACK}}*/ |
647 |
| - |
648 |
| - PROVIDE ( __stack_start_ = ORIGIN(EXTERNAL_DRAM_0) + __PROG_SIZE_FOR_CORE__ * __CORE_NUM_ + __PROG_SIZE_FOR_CORE__ - 0x10) ; |
649 |
| - .stack ${RELOCATING+__stack_start_} : { ___stack = .; *(.stack) } |
650 |
| - |
651 |
| - PROVIDE ( ___heap_start = ORIGIN(EXTERNAL_DRAM_1) + __HEAP_SIZE_FOR_CORE__ * __CORE_NUM_ ); |
652 |
| - /*.heap_start __heap_start_ : { _heap_start_ = .; *(.heap_start) }*/ |
653 |
| - |
654 |
| - PROVIDE ( ___heap_end = ORIGIN(EXTERNAL_DRAM_1) + __HEAP_SIZE_FOR_CORE__ * __CORE_NUM_ + __HEAP_SIZE_FOR_CORE__ - 4 ); |
655 |
| - |
656 |
| - |
657 |
| - /* .heap_end __heap_end_ : { _heap_end_ = .; *(.heap_end) }*/ |
658 |
| - |
659 |
| - |
660 | 643 | ${ATTRS_SECTIONS}
|
661 | 644 | ${OTHER_SECTIONS}
|
662 | 645 | ${RELOCATING+${OTHER_SYMBOLS}}
|
|
0 commit comments