1、 INCITS/ISO/IEC 23360-6:20062010 (ISO/IEC 23360-6:2006, IDT) Linux Standard Base (LSB) core specification 3.1 - Part 6: Specification for PPC64 architecture Reaffirmed as INCITS/ISO/IEC 23360-6:2006 R2015INCITS/ISO/IEC 23360-6:20062010 PDF disclaimer This PDF file may contain embedded typefaces. In
2、accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adob
3、es licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for
4、printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. Adopted by INCITS (InterNational Committee for Information Technology
5、Standards) as an American National Standard. Date of ANSI Approval: 11/18/2010 Published by American National Standards Institute, 25 West 43rd Street, New York, New York 10036 Copyright 2010 by Information Technology Industry Council (ITI). All rights reserved. These materials are subject to copyri
6、ght claims of International Standardization Organization (ISO), International Electrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council (ITI). Not for resale. No part of this publication may be reproduced in any form, including an el
7、ectronic retrieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1101 K Street NW, Suite 610, Washington DC 20005. Printed in the United States of America ii ITIC 2010 All rights reserved ISO/IEC 23360-6:2006(E) ISO/IEC 2006
8、 All rights reserved iiiLinux Standard Base Core Specification for PPC64 3.1 ISO/IEC 23360-6:2006(E) Copyright 2006 ISO/IEC This standard includes material that has been provided by the Free Standards Group under the GNU Free Documentation License Version 1.1 published by the Free Software Foundatio
9、n. Portions of the text are copyrighted by the following parties: The Regents of the University of California Free Software Foundation Ian F. Darwin Paul Vixie BSDI (now Wind River) Andrew G Morgan Jean-loup Gailly and Mark Adler Massachusetts Institute of Technology These excerpts are being used in
10、 accordance with their respective licenses. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. UNIX is a registered trademark of The Open Group. LSB is a trademark of the Free Standards Group in the United States and other countries. AMD is a trademark of Advanced M
11、icro Devices, Inc. Intel and Itanium are registered trademarks and Intel386 is a trademark of Intel Corporation. PowerPC is a registered trademark and PowerPC Architecture is a trademark of the IBM Corporation. S/390 is a registered trademark of the IBM Corporation. OpenGL is a registered trademark
12、of Silicon Graphics, Inc. ISO/IEC 23360-6:2006(E) iv ISO/IEC 2006 All rights reservedContents I Introductory Elements .0 1 Scope11.1 General11.2 Module Specific Scope12 References.22.1 Normative References 22.2 Informative References/Bibliography .43 Requirements .63.1 Relevant Libraries .63.2 LSB I
13、mplementation Conformance 63.3 LSB Application Conformance74 Definitions 95 Terminology .106 Documentation Conventions .12II Executable and Linking Format (ELF).137 Introduction148 Low Level System Information158.1 Machine Interface158.2 Function Calling Sequence.168.3 Traceback Tables .168.4 Proces
14、s Initialization.168.5 Coding Examples 169 Object Format.18 9.1 Introduction .189.2 ELF Header 189.3 Special Sections189.4 TOC.20 9.5 Symbol Table .209.6 Relocation.2010 Program Loading and Dynamic Linking .21 10.1 Introduction .2110.2 Program Loading 2110.3 Dynamic Linking.21III Base Libraries .22
15、11 Libraries 2311.1 Program Interpreter/Dynamic Linker.2311.2 Interfaces for libc.2311.3 Data Definitions for libc .3711.4 Interfaces for libm .4911.5 Data Definitions for libm5411.6 Interfaces for libpthread.5511.7 Data Definitions for libpthread .5711.8 Interfaces for libgcc_s .5811.9 Data Definit
16、ions for libgcc_s5911.10 Interface Definitions for libgcc_s.5911.11 Interfaces for libdl .6511.12 Data Definitions for libdl .6611.13 Interfaces for libcrypt66IV Utility Libraries67 12 Libraries 68Foreword vii Introduction .viii ISO/IEC 23360-6:2006(E) ISO/IEC 2006 All rights reserved v12.1 Interfac
17、es for libz.6812.2 Data Definitions for libz .6812.3 Interfaces for libncurses6812.4 Data Definitions for libncurses6912.5 Interfaces for libutil.69V Package Format and Installation7113 Software Installation .7213.1 Package Dependencies .7213.2 Package Architecture Considerations 72A Alphabetical Li
18、sting of Interfaces73A.1 libgcc_s73ISO/IEC 23360-6:2006(E) vi ISO/IEC 2006 All rights reservedList of Tables 2-1 Normative References .22-2 Other References43-1 Standard Library Names.69-1 ELF Special Sections 189-2 Additional Special Sections 1911-1 libc Definition.2311-2 libc - RPC Function Interf
19、aces 2311-3 libc - System Calls Function Interfaces .2411-4 libc - Standard I/O Function Interfaces2611-5 libc - Standard I/O Data Interfaces .2711-6 libc - Signal Handling Function Interfaces .2711-7 libc - Signal Handling Data Interfaces 2811-8 libc - Localization Functions Function Interfaces 281
20、1-9 libc - Localization Functions Data Interfaces .2811-10 libc - Socket Interface Function Interfaces 2911-11 libc - Wide Characters Function Interfaces.2911-12 libc - String Functions Function Interfaces.3111-13 libc - IPC Functions Function Interfaces .3211-14 libc - Regular Expressions Function
21、Interfaces 3211-15 libc - Character Type Functions Function Interfaces.3211-16 libc - Time Manipulation Function Interfaces3311-17 libc - Time Manipulation Data Interfaces .3311-18 libc - Terminal Interface Functions Function Interfaces .3311-19 libc - System Database Interface Function Interfaces34
22、11-20 libc - Language Support Function Interfaces .3411-21 libc - Large File Support Function Interfaces .3511-22 libc - Standard Library Function Interfaces3511-23 libc - Standard Library Data Interfaces .3711-24 libm Definition .4911-25 libm - Math Function Interfaces.5011-26 libm - Math Data Inte
23、rfaces 5311-27 libpthread Definition.5511-28 libpthread - Realtime Threads Function Interfaces.5511-29 libpthread - Posix Threads Function Interfaces .5511-30 libpthread - Thread aware versions of libc interfaces Function Interfaces 5711-31 libgcc_s Definition .5811-32 libgcc_s - Unwind Library Func
24、tion Interfaces5811-33 libdl Definition .6511-34 libdl - Dynamic Loader Function Interfaces.6511-35 libcrypt Definition6611-36 libcrypt - Encryption Function Interfaces.6612-1 libz Definition.6812-2 libncurses Definition .6912-3 libutil Definition.6912-4 libutil - Utility Functions Function Interfac
25、es 70A-1 libgcc_s Function Interfaces 73ISO/IEC 23360-6:2006(E) ISO/IEC 2006 All rights reserved viiForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies tha
26、t are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other interna
27、tional organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given in
28、 the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at
29、 least 75 % of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. International Standard ISO/IEC 23360-6 was
30、 prepared by the Free Standards Group and was adopted, under the PAS procedure, by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments and system software interfaces. ISO/IEC 23360 consists of the following parts, under the g
31、eneral title Linux Standard Base (LSB) core specification 3.1: Part 1: Generic specification Part 2: Specification for IA32 architecture Part 3: Specification for IA64 architecture Part 4: Specification for AMD64 architecture Part 5: Specification for PPC32 architecture Part 6: Specification for PPC
32、64 architecture Part 7: Specification for S390 architecture Part 8: Specification for S390X architecture ISO/IEC 23360-6:2006(E) viii ISO/IEC 2006 All rights reservedIntroduction The specification carries a version number of either the form x.y or x.y.z. This version number carries the following mea
33、ning: The first number (x) is the major version number. All versions with the same major version number should share binary compatibility. Any addition or deletion of a new library results in a new version number. Interfaces marked as deprecated may be removed from the specification at a major versi
34、on change. The second number (y) is the minor version number. Individual interfaces may be added if all certified implementations already had that (previously undocumented) interface. Interfaces may be marked as deprecated at a minor version change. Other minor changes may be permitted at the discre
35、tion of the LSB workgroup. The third number (z), if present, is the editorial level. Only editorial changes should be included in such versions. Since this specification is a descriptive Application Binary Interface, and not a source level API specification, it is not possible to make a guarantee of
36、 100% backward compatibility between major releases. However, it is the intent that those parts of the binary interface that are visible in the source level API will remain backward compatible from version to version, except where a feature marked as in one release may be removed from a future relea
37、se. Implementors are strongly encouraged to make use of symbol versioning to permit simultaneous support of applications conforming to different releases of this specification. This is version 3.1 of the Linux Standard Base Core Specification. This specification is part of a family of specifications
38、 under the general title “Linux Standard Base (LSB) core specification 3.1“. Developers of applications orimplementations interested in using the LSB trademark should see the Free Standards Group Certification Policy for details. deprecatedThe LSB defines a binary interface for application programs
39、that are compiled and packaged for LSB-conforming implementations on many different hardware architectures. Since a binary specification includes information specific to the computer processor architecture for which it is intended, it is not possible for a single document to specify the interface fo
40、r all possible LSB-conforming implementations. Therefore, the LSB is a family of specifications, rather than a single one. 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 ma
41、y 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
42、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 detail. Informati
43、on referenced in this way is as much a part of this document as is the information explicitly included here. I Introductory Elements 1 Scope 1.1 General The Linux Standard Base (LSB) defines a system interface for compiled applications and a minimal environment for support of installation scripts. I
44、ts 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 specification (“LSB-generic“ or “generic LSB“), ISO/IEC 23360-1, describing those parts of the interface that remain cons
45、tant across all implementations of the LSB, and an architecture-specific part (“LSB-arch“ or “archLSB“) describing the parts of the interface that vary by processor architecture. Together, the LSB-generic and the relevant architecture-specific part of ISO/IEC 23360 for a single hardware architecture
46、 provide a complete interface specification for compiled application programs on systems that share a common hardware architecture. ISO/IEC 23360-1, the LSB-generic document, is used in conjunction with an architecture-specific part. Whenever a section of the LSB-generic specification is supplemente
47、d by architecture-specific information, the LSB-generic document includes a reference to the architecture part. Architecture-specific parts of ISO/IEC 23360 may also contain additional information that is not referenced in the LSB-generic document. The LSB contains both a set of Application Program
48、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
49、(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. 1.2 Module Specific Scope This is the PPC64 architecture-specific Core part of the Linux Standard Base (LSB). It supplements the gen