Linux Standard Base (LSB) — Part 4-2: Core specification for AMD64 (X86-64) architecture
Introduction: The LSB defines a binary interface for application programs that are compiled and packaged for LSB-conforming implementations on many different hardware architectures. A binary specification must include information specific to the computer processor architecture for which it is intended. To avoid the complexity of conditional descriptions, the specification has instead been divided into generic parts which are augmented by one of several architecture-specific parts, depending on the target processor architecture; the generic part will indicate when reference must be made to the architecture part, and vice versa. This document should be used in conjunction with the documents it references. This document enumerates the system components it includes, but descriptions of those components may be included entirely or partly in this document, partly in other documents, or entirely in other reference documents. For example, the section that describes system service routines includes a list of the system routines supported in this interface, formal declarations of the data structures they use that are visible to applications, and a pointer to the underlying referenced specification for information about the syntax and semantics of each call. Only those routines not described in standards referenced by this document, or extensions to those standards, are described in the detail. Information referenced in this way is as much a part of this document as is the information explicitly incl
Scope: The Linux Standard Base (LSB) defines a system interface for compiled applications and a minimal environment for support of installation scripts. Its purpose is to enable a uniform industry standard environment for high-volume applications conforming to the LSB. These specifications are composed of two basic parts: a common part describing those parts of the interface that remain constant across all implementations of the LSB, and an architecture-specific part describing the parts of the interface that vary by processor architecture. Together, the common part and the relevant architecture-specific part for a single hardware architecture provide a complete interface specification for compiled application programs on systems that share a common hardware architecture. The LSB contains both a set of Application Program Interfaces (APIs) and Application Binary Interfaces (ABIs). APIs may appear in the source code of portable applications, while the compiled binary of that application may use the larger set of ABIs. A conforming implementation provides all of the ABIs listed here. The compilation system may replace (e.g. by macro definition) certain APIs with calls to one or more of the underlying binary interfaces, and may insert calls to binary interfaces as needed. The LSB is primarily a binary interface definition. Not all of the source level APIs available to applications may be contained in this specification. This is the X86-64 architecture specific part of the Core module of the Linux Standard Base (LSB). This part supplements the common part of the LSB Core module with those interfaces that differ between architectures. This part should be used in conjunction with LSB Core - Generic, the common part. Whenever a section of the common part is supplemented by architecture- specific information, the common part includes a reference to the architecture- specific part. This part may also contain additional information that is not referenced in the common part. Interfaces described in this part of the LSB Core Specification are mandatory except where explicitly listed otherwise. Interfaces described in the LSB Core module are supplemented by other LSB modules. All o
Contents:
- Foreword
- Introduction
- 1 Scope
- 2 References
- 2.1 Normative References
- 2.2 Informative References/Bibliography
- 3 Requirements
- 3.1 Relevant Libraries
- 3.2 LSB Implementation Conformance
- 3.3 LSB Application Conformance
- 4 Terms and Definitions
- 5 Documentation Conventions
- 6 Introduction
- 7 Low Level System Information
- 7.1 Machine Interface
- 7.2 Function Calling Sequence
- 7.3 Operating System Interface
- 7.4 Process Initialization
- 7.5 Coding Examples
- 7.6 C Stack Frame
- 7.7 Debug Information
- 8 Object Format
- 8.1 Introduction
- 8.2 ELF Header
- 8.3 Sections
- 8.4 Symbol Table
- 8.5 Relocation
- 9 Program Loading and Dynamic Linking
- 9.1 Introduction
- 9.2 Program Header