etext This is the first address past the end of the text segment
(the program code).
edata This is the first address past the end of the
initialized data
segment.
end This is the first address past the end of
the uninitialized
data segment (also known as
the BSS segment).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /*Program source*/ #include <stdio.h> #include <stdlib.h> extern char etext, edata, end; /* The symbols must have some type, or "gcc -Wall" complains */ int main(int argc, char *argv[]) { printf("First address past:\n"); printf(" program text (etext) %10p\n", &etext); printf(" initialized data (edata) %10p\n", &edata); printf(" uninitialized data (end) %10p\n", &end); exit(EXIT_SUCCESS); } | cs |
'Linux > Linux자료' 카테고리의 다른 글
VI 편집기 자동 들여쓰기 (0) | 2019.05.21 |
---|---|
Ubuntu] 공유 폴더 설정 (0) | 2014.12.01 |
Ubuntu 설치 주소 (0) | 2014.11.27 |
Ubuntu] vi 줄번호 (0) | 2014.06.02 |
Ubuntu] apt-get install 시 ctrl +z했을 때 (0) | 2014.06.02 |