Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

etext(5) [osf1 man page]

end(5)								File Formats Manual							    end(5)

NAME
end, etext, edata - Defines the last location of a program SYNOPSIS
extern end; extern etext; extern edata; DESCRIPTION
The external names end, etext, and edata are defined for all programs. They are not functions, but identifiers associated with the follow- ing addresses: The first address following the program text. The first address following the initialized data region. The first address following the data region that is not initialized. The break value of the program is the first location beyond the data. When a program begins running, this location coincides with end. However, many factors can change the break value, including: The brk() function The malloc() function The standard I/O functions The -p flag on the cc command Therefore, use sbrk(0), not end, to determine the break value of the program. SEE ALSO
Functions: brk(2), malloc(3) Commands: cc(1) end(5)

Check Out this Related Man Page

end(3C) 						   Standard C Library Functions 						   end(3C)

NAME
end, _end, etext, _etext, edata, _edata - last locations in program SYNOPSIS
extern int _etext; extern int _edata; extern int _end; DESCRIPTION
These names refer neither to routines nor to locations with interesting contents; only their addresses are meaningful. _etext The address of _etext is the first location after the program text. _edata The address of _edata is the first location after the initialized data region. _end The address of _end is the first location after the uninitialized data region. USAGE
When execution begins, the program break (the first location beyond the data) coincides with _end, but the program break may be reset by the brk(2), malloc(3C), and the standard input/output library (see stdio(3C)), functions by the profile (-p) option of cc(1B), and so on. Thus, the current value of the program break should be determined by sbrk ((char *)0). References to end, etext, and edata, without a preceding underscore will be aliased to the associated symbol that begins with the under- score. SEE ALSO
cc(1B), brk(2), malloc(3C), stdio(3C) SunOS 5.10 1 Sep 2003 end(3C)
Man Page

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Stange problem Dell PowerEdge 1950/ Boradcom Netextreme NIC

I have 2 Dell Poweredge 1950 servers running . I have been having intermittent performance issues with the NIC cards on one of them. The two servers are identical and are running the same operating system. The server that has the issue is on the DMZ on a a static IP and is hosting a website. ... (0 Replies)
Discussion started by: skotapal
0 Replies