1、Linux Standard Base(LSB)Part 4-2:Core specification for AMD64(X86-64)architecture ISO/IEC 2021INTERNATIONAL STANDARDISO/IEC23360-4-2Reference numberISO/IEC 23360-4-2:2021(E)First edition2021-10ISO/IEC 23360-4-2:2021(E)ii ISO/IEC 2021 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO/IEC 2021All ri
2、ghts reserved.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 pe
3、rmission.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-4-2:20
4、21(E)ISO/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 I
5、nternational 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
6、 with 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
7、.org/directives 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
8、during 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
9、 and does 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 T
10、rade(TBT),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 AMD64(X86-64)architecture and drafted in accordance with its editorial rules.It was assigned to Joint Te
11、chnical Committee 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-4-2 cancels and replaces ISO/IEC 23360-4:2006,which has been technically revised.This d
12、ocument is based 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
13、 to the users 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-4-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
14、.1 Normative 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
15、Low Level System Information.16 7.1 Machine Interface.16 7.2 Function Calling Sequence.17 7.3 Operating System Interface.18 7.4 Process Initialization.18 7.5 Coding Examples.19 7.6 C Stack Frame.19 7.7 Debug Information.19 8 Object Format.20 8.1 Introduction.20 8.2 ELF Header.20 8.3 Sections.20 8.4
16、Symbol Table.21 8.5 Relocation.21 9 Program Loading and Dynamic Linking.22 9.1 Introduction.22 9.2 Program Header.22 9.3 Program Loading.22 9.4 Dynamic Linking.22 III Base Libraries.24 10 Libraries.25 10.1 Program Interpreter/Dynamic Linker.25 10.2 Interfaces for libc.25 10.3 Data Definitions for libc.45 10.4 Interface Definitions for libc.65 10.5 Interfaces for libm.66 10.6 Data Definitions for libm.71 10.7 Interface Definitions for libm.72 10.8 Interfaces for libpthread.73 10.9 Data Definition