OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man3 / end.3
1 .\" Copyright (c) 2008, Linux Foundation, written by by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" License.
24 .\"
25 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
26 .\"         all rights reserved.
27 .\" Translated 2008-08-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
28 .\" 
29 .TH END 3 2008-07-17 "GNU" "Linux Programmer's Manual"
30 .SH Ì¾Á°
31 etext, edata, end \- ¥×¥í¥°¥é¥à¥»¥°¥á¥ó¥È¤Î½ª¤ï¤ê
32 .SH ½ñ¼°
33 .nf
34 .BI extern " etext" ;
35 .BI extern " edata" ;
36 .BI extern " end" ;
37 .fi
38 .SH ÀâÌÀ
39 ¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤Î¥¢¥É¥ì¥¹¤Ï³Æ¼ï¤Î¥×¥í¥°¥é¥à¥»¥°¥á¥ó¥È¤Î½ª¤ï¤ê¤ò¼¨¤¹¡£
40 .TP
41 .I etext
42 ¥Æ¥­¥¹¥È¥»¥°¥á¥ó¥È (¥×¥í¥°¥é¥à¤Î¥³¡¼¥É) ¤ÎËöÈø¤Î¼¡¤Î¥¢¥É¥ì¥¹¡£
43 .TP
44 .I edata
45 ½é´ü²½¤µ¤ì¤¿¥Ç¡¼¥¿¤Î¥»¥°¥á¥ó¥È¤ÎËöÈø¤Î¼¡¤Î¥¢¥É¥ì¥¹¡£
46 .TP
47 .I end
48 ½é´ü²½¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¡¼¥¿¤Î¥»¥°¥á¥ó¥È (BSS ¥»¥°¥á¥ó¥È¤È¤â¸À¤ï¤ì¤ë)
49 ¤ÎËöÈø¤Î¼¡¤Î¥¢¥É¥ì¥¹¡£
50 .SH ½àµò
51 ¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤ÏĹǯ¤Û¤È¤ó¤É¤Î UNIX ¥·¥¹¥Æ¥à¤ÇÄ󶡤µ¤ì¤Æ¤¤¤ë¤¬¡¢
52 ɸ½à²½¤µ¤ì¤Æ¤Ï¤¤¤Ê¤¤¡£Ãí°Õ¤·¤Æ»È¤¦¤³¤È¡£
53 .SH Ãí°Õ
54 ¥×¥í¥°¥é¥à¤Ç¤Ï¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤ÏÌÀ¼¨Åª¤ËÀë¸À¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
55 ¤³¤ì¤é¤Ï¤É¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Ç¤âÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
56
57 ¤¤¤¯¤Ä¤«¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤Î̾Á°¤ÏÁ°¤Ë¥¢¥ó¥À¡¼¥¹¥³¥¢¤¬
58 ÉÕ¤¤¤Æ¤¤¤Æ¡¢
59 .IR _etext ,
60 .IR _edata ,
61 .I _end
62 ¤È¤Ê¤Ã¤Æ¤¤¤ë¡£
63 Linux ¤Ç¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥×¥í¥°¥é¥à¤Ç¤Ï¡¢
64 ¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤Ç¤âÄêµÁ¤µ¤ì¤ë¡£
65
66 ¥×¥í¥°¥é¥à¤Î¼Â¹Ô³«»Ï»þ¤Ë¡¢¥×¥í¥°¥é¥à¡¦¥Ö¥ì¡¼¥¯¤Ï
67 .I &end
68 ¤Î¶á¤¯¤Î¤É¤³¤« (¤ª¤½¤é¤¯¼¡¤Î¥Ú¡¼¥¸¤ÎÀèƬ) ¤Ë¤Ê¤ë¡£
69 ¤·¤«¤·¤Ê¤¬¤é¡¢
70 .BR brk (2)
71 ¤ä
72 .BR malloc (3)
73 ¤Ç¥á¥â¥ê¤¬³ä¤êÅö¤Æ¤é¤ì¤ë¤ËÏ¢¤ì¤Æ¡¢¥×¥í¥°¥é¥à¡¦¥Ö¥ì¡¼¥¯¤ÏÊѲ½¤·¤Æ¤¤¤¯¡£
74 °ú¤­¿ô¤Ë 0 ¤ò»ØÄꤷ¤Æ
75 .BR sbrk (2)
76 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¡¢¥×¥í¥°¥é¥à¡¦¥Ö¥ì¡¼¥¯¤Î¸½ºßÃͤòÃΤ뤳¤È¤¬¤Ç¤­¤ë¡£
77 .SH Îã
78 ²¼µ­¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ë¤È¡¢¼¡¤Î¤è¤¦¤Ê½ÐÎϤ¬ÆÀ¤é¤ì¤ë¡£
79 .in +4n
80 .nf
81
82 .RB "$" " ./a.out"
83 First address past:
84     program text (etext)       0x8048568
85     initialized data (edata)   0x804a01c
86     uninitialized data (end)   0x804a024
87 .fi
88 .SS ¥×¥í¥°¥é¥à¤Î¥½¡¼¥¹
89 \&
90 .in
91 .nf
92 #include <stdio.h>
93 #include <stdlib.h>
94
95 extern char etext, edata, end; /* The symbols must have some type,
96                                    or "gcc -Wall" complains */
97
98 int
99 main(int argc, char *argv[])
100 {
101     printf("First address past:\\n");
102     printf("    program text (etext)      %10p\\n", &etext);
103     printf("    initialized data (edata)  %10p\\n", &edata);
104     printf("    uninitialized data (end)  %10p\\n", &end);
105
106     exit(EXIT_SUCCESS);
107 }
108 .fi
109 .SH ´ØÏ¢¹àÌÜ
110 .BR objdump (1),
111 .BR readelf (1),
112 .BR sbrk (2),
113 .BR elf (5)