Print this page
7322 ld(1) gets init/fini array section names wrong


 669        -z endfiltee
 670 
 671            Marks a filtee so that when processed by a filter, the filtee
 672            terminates any further filtee searches by the filter. See Reducing
 673            Filtee Searches in Linker and Libraries Guide.
 674 
 675 
 676        -z fatal-warnings | nofatal-warnings
 677        --fatal-warnings | --no-fatal-warnings
 678 
 679            Controls the behavior of warnings emitted from the link-editor.
 680            Setting -z fatal-warnings promotes warnings emitted by the link-
 681            editor to fatal errors that will cause the link-editor to fail
 682            before linking. -z nofatal-warnings instead demotes these warnings
 683            such that they will not cause the link-editor to exit prematurely.
 684 
 685 
 686 
 687        -z finiarray=function
 688 
 689            Appends an entry to the .finiarray section of the object being
 690            built.  If no .finiarray section is present, a section is created.
 691            The new entry is initialized to point to function. See
 692            Initialization and Termination Sections in Linker and Libraries
 693            Guide.
 694 
 695 
 696        -z globalaudit
 697 
 698            This option supplements an audit library definition that has been
 699            recorded with the -P option. This option is only meaningful when
 700            building a dynamic executable. Audit libraries that are defined
 701            within an object with the -P option typically allow for the
 702            auditing of the immediate dependencies of the object. The -z
 703            globalaudit promotes the auditor to a global auditor, thus allowing
 704            the auditing of all dependencies. See Invoking the Auditing
 705            Interface in Linker and Libraries Guide.
 706 
 707            An auditor established with the -P option and the -z globalaudit
 708            option, is equivalent to the auditor being established with the
 709            LD_AUDIT environment variable. See ld.so.1(1).
 710 


 789            and exit.
 790 
 791 
 792        -z ignore | record
 793 
 794            Ignores, or records, dynamic dependencies that are not referenced
 795            as part of the link-edit. Ignores, or records, unreferenced ELF
 796            sections from the relocatable objects that are read as part of the
 797            link-edit. By default, -z record is in effect.
 798 
 799            If an ELF section is ignored, the section is eliminated from the
 800            output file being generated. A section is ignored when three
 801            conditions are true. The eliminated section must contribute to an
 802            allocatable segment. The eliminated section must provide no global
 803            symbols. No other section from any object that contributes to the
 804            link-edit, must reference an eliminated section.
 805 
 806 
 807        -z initarray=function
 808 
 809            Appends an entry to the .initarray section of the object being
 810            built.  If no .initarray section is present, a section is created.
 811            The new entry is initialized to point to function. See
 812            Initialization and Termination Sections in Linker and Libraries
 813            Guide.
 814 
 815 
 816        -z initfirst
 817 
 818            Marks the object so that its runtime initialization occurs before
 819            the runtime initialization of any other objects brought into the
 820            process at the same time.  In addition, the object runtime
 821            finalization occurs after the runtime finalization of any other
 822            objects removed from the process at the same time.  This option is
 823            only meaningful when building a shared object.
 824 
 825 
 826        -z interpose
 827 
 828            Marks the object as an interposer. At runtime, an object is
 829            identified as an explicit interposer if the object has been tagged
 830            using the -z interpose option. An explicit interposer is also




 669        -z endfiltee
 670 
 671            Marks a filtee so that when processed by a filter, the filtee
 672            terminates any further filtee searches by the filter. See Reducing
 673            Filtee Searches in Linker and Libraries Guide.
 674 
 675 
 676        -z fatal-warnings | nofatal-warnings
 677        --fatal-warnings | --no-fatal-warnings
 678 
 679            Controls the behavior of warnings emitted from the link-editor.
 680            Setting -z fatal-warnings promotes warnings emitted by the link-
 681            editor to fatal errors that will cause the link-editor to fail
 682            before linking. -z nofatal-warnings instead demotes these warnings
 683            such that they will not cause the link-editor to exit prematurely.
 684 
 685 
 686 
 687        -z finiarray=function
 688 
 689            Appends an entry to the .fini_array section of the object being
 690            built.  If no .fini_array section is present, a section is created.
 691            The new entry is initialized to point to function. See
 692            Initialization and Termination Sections in Linker and Libraries
 693            Guide.
 694 
 695 
 696        -z globalaudit
 697 
 698            This option supplements an audit library definition that has been
 699            recorded with the -P option. This option is only meaningful when
 700            building a dynamic executable. Audit libraries that are defined
 701            within an object with the -P option typically allow for the
 702            auditing of the immediate dependencies of the object. The -z
 703            globalaudit promotes the auditor to a global auditor, thus allowing
 704            the auditing of all dependencies. See Invoking the Auditing
 705            Interface in Linker and Libraries Guide.
 706 
 707            An auditor established with the -P option and the -z globalaudit
 708            option, is equivalent to the auditor being established with the
 709            LD_AUDIT environment variable. See ld.so.1(1).
 710 


 789            and exit.
 790 
 791 
 792        -z ignore | record
 793 
 794            Ignores, or records, dynamic dependencies that are not referenced
 795            as part of the link-edit. Ignores, or records, unreferenced ELF
 796            sections from the relocatable objects that are read as part of the
 797            link-edit. By default, -z record is in effect.
 798 
 799            If an ELF section is ignored, the section is eliminated from the
 800            output file being generated. A section is ignored when three
 801            conditions are true. The eliminated section must contribute to an
 802            allocatable segment. The eliminated section must provide no global
 803            symbols. No other section from any object that contributes to the
 804            link-edit, must reference an eliminated section.
 805 
 806 
 807        -z initarray=function
 808 
 809            Appends an entry to the .init_array section of the object being
 810            built.  If no .init_array section is present, a section is created.
 811            The new entry is initialized to point to function. See
 812            Initialization and Termination Sections in Linker and Libraries
 813            Guide.
 814 
 815 
 816        -z initfirst
 817 
 818            Marks the object so that its runtime initialization occurs before
 819            the runtime initialization of any other objects brought into the
 820            process at the same time.  In addition, the object runtime
 821            finalization occurs after the runtime finalization of any other
 822            objects removed from the process at the same time.  This option is
 823            only meaningful when building a shared object.
 824 
 825 
 826        -z interpose
 827 
 828            Marks the object as an interposer. At runtime, an object is
 829            identified as an explicit interposer if the object has been tagged
 830            using the -z interpose option. An explicit interposer is also