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).
| /*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 |