1、Linux Standard Base(LSB)Part 2-2:Core specification for X86-32 architecture ISO/IEC 2021INTERNATIONAL STANDARDISO/IEC23360-2-2Reference numberISO/IEC 23360-2-2:2021(E)First edition2021-10ISO/IEC 23360-2-2:2021(E)ii ISO/IEC 2021 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO/IEC 2021All rights r
2、eserved.Unless otherwise specified,or required in the context of its implementation,no part of this publication may be reproduced or utilized otherwise in any form or by any means,electronic or mechanical,including photocopying,or posting on the internet or an intranet,without prior written permissi
3、on.Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester.ISO copyright officeCP 401 Ch.de Blandonnet 8CH-1214 Vernier,GenevaPhone:+41 22 749 01 11Email:copyrightiso.orgWebsite:www.iso.orgPublished in SwitzerlandISO/IEC 23360-2-2:2021(E)I
4、SO/IEC 2021 All rights reserved iii Foreword ISO(the International Organization for Standardization)and IEC(the International Electrotechnical Commission)form the specialized system for worldwide standardization.National bodies that are members of ISO or IEC participate in the development of Interna
5、tional 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 international organizations,governmental and non-governmental,in liaison with
6、ISO and IEC,also take part in the work.The procedures used to develop this document and those intended for its further maintenance are described in the ISO/IEC Directives,Part 1.In particular,the different approval criteria needed for the different types of document should be noted(see www.iso.org/d
7、irectives or www.iec.ch/members_experts/refdocs).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.Details of any patent rights identified during
8、 the development of the document will be in the Introduction and/or on the ISO list of patent declarations received(see www.iso.org/patents)or the IEC list of patent declarations received(see patents.iec.ch).Any trade name used in this document is information given for the convenience of users and d
9、oes not constitute an endorsement.For an explanation of the voluntary nature of standards,the meaning of ISO specific terms and expressions related to conformity assessment,as well as information about ISOs adherence to the World Trade Organization(WTO)principles in the Technical Barriers to Trade(T
10、BT),see www.iso.org/iso/foreword.html.In the IEC,see www.iec.ch/understanding-standards.This document was prepared by the Linux Foundation as Linux Standard Base(LSB):Core specification for X86-32 architecture and drafted in accordance with its editorial rules.It was assigned to Joint Technical Comm
11、ittee ISO/IEC JTC 1,Information technology,Subcommittee SC 22,Programming languages,their environments and system software interfaces,and adopted by National Bodies.This first edition of ISO/IEC 23360-2-2 cancels and replaces ISO/IEC 23360-2:2006,which has been technically revised.This document is b
12、ased on“The GNU Free Documentation License,version 1.1”.The license is available at https:/www.gnu.org/licenses/old-licenses/fdl-1.1.html.A list of all parts in the ISO/IEC 23660 series can be found on the ISO and IEC websites.Any feedback or questions on this document should be directed to the user
13、s national standards body.A complete listing of these bodies can be found at www.iso.org/members.html and www.iec.ch/national-committees.ISO/IEC 23360-2-2:2021(E)iv 2021 ISO/IEC All rights reserved Contents Foreword.iii Introduction.vi I Introductory Elements.1 1 Scope.2 2 References.3 2.1 Normative
14、 References.3 2.2 Informative References/Bibliography.5 3 Requirements.8 3.1 Relevant Libraries.8 3.2 LSB Implementation Conformance.8 3.3 LSB Application Conformance.9 4 Terms and Definitions.11 5 Documentation Conventions.13 II Executable and Linking Format(ELF).14 6 Introduction.15 7 Low Level Sy
15、stem Information.16 7.1 Machine Interface.16 7.2 Function Calling Sequence.17 7.3 Operating System Interface.18 7.4 Process Initialization.19 7.5 Coding Examples.20 7.6 C Stack Frame.21 7.7 Debug Information.21 8 Object Format.22 8.1 Introduction.22 8.2 ELF Header.22 8.3 Special Sections.22 8.4 Symb
16、ol Table.23 8.5 Relocation.23 9 Program Loading and Dynamic Linking.24 9.1 Introduction.24 9.2 Program Header.24 9.3 Program Loading.24 9.4 Dynamic Linking.24 III Base Libraries.26 10 Libraries.27 10.1 Program Interpreter/Dynamic Linker.27 10.2 Interfaces for libc.27 10.3 Data Definitions for libc.47 10.4 Interface Definitions for libc.66 10.5 Interfaces for libm.68 10.6 Data Definitions for libm.73 10.7 Interface Definitions for libm.74 10.8 Interfaces for libpthread.75 10.9 Data Definitions fo