gcc - err sbrk.c:(.text._sbrk+0x18): undefined reference to `end'
카테고리 없음 / 2016. 9. 9. 23:30
sbrk.c:(.text._sbrk+0x18): undefined reference to `end'
수정전
/* Those numbers are used for malloc and sbrk functions */ PROVIDE ( _linker_memory_start = _sdata ); PROVIDE ( _linker_heap_start = _ebss ); PROVIDE ( _linker_heap_end = (_estack - _Min_Stack_Size) ); PROVIDE ( _linker_memory_end = _estack ); PROVIDE ( _end = _ebss ); |
수정후
/* Those numbers are used for malloc and sbrk functions */
PROVIDE ( _linker_memory_start = _sdata );
PROVIDE ( _linker_heap_start = _ebss );
PROVIDE ( _linker_heap_end = (_estack - _Min_Stack_Size) );
PROVIDE ( _linker_memory_end = _estack );
PROVIDE ( _end = _ebss );
PROVIDE (end = .);/* <<== sbrk.c undefined reference to `end' */ |