Commit a4224ed
GCC: disable default heap limit checking in sbrk
- __HeapLimit symbol was used in sbrk implementation to check for out of heap condition.
In many cases linker scripts do not provide this symbol, hence by default this check
is now disabled.
- One can re-enable heap limit check by using define SBRK_HEAP_LIMIT_CHECK and provide
symbol __HeapLimit which designates the end of heap section.1 parent d768446 commit a4224ed
1 file changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
613 | 616 | | |
614 | 617 | | |
615 | 618 | | |
| 619 | + | |
616 | 620 | | |
| 621 | + | |
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
620 | | - | |
621 | 625 | | |
622 | 626 | | |
623 | 627 | | |
| |||
626 | 630 | | |
627 | 631 | | |
628 | 632 | | |
| 633 | + | |
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
632 | 637 | | |
633 | | - | |
| 638 | + | |
634 | 639 | | |
635 | | - | |
636 | | - | |
637 | | - | |
| 640 | + | |
638 | 641 | | |
639 | | - | |
640 | | - | |
| 642 | + | |
641 | 643 | | |
642 | | - | |
| 644 | + | |
643 | 645 | | |
0 commit comments