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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/ld.1.man.txt
          +++ new/usr/src/man/man1/ld.1.man.txt
↓ open down ↓ 678 lines elided ↑ open up ↑
 679  679             Controls the behavior of warnings emitted from the link-editor.
 680  680             Setting -z fatal-warnings promotes warnings emitted by the link-
 681  681             editor to fatal errors that will cause the link-editor to fail
 682  682             before linking. -z nofatal-warnings instead demotes these warnings
 683  683             such that they will not cause the link-editor to exit prematurely.
 684  684  
 685  685  
 686  686  
 687  687         -z finiarray=function
 688  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.
      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  691             The new entry is initialized to point to function. See
 692  692             Initialization and Termination Sections in Linker and Libraries
 693  693             Guide.
 694  694  
 695  695  
 696  696         -z globalaudit
 697  697  
 698  698             This option supplements an audit library definition that has been
 699  699             recorded with the -P option. This option is only meaningful when
 700  700             building a dynamic executable. Audit libraries that are defined
↓ open down ↓ 98 lines elided ↑ open up ↑
 799  799             If an ELF section is ignored, the section is eliminated from the
 800  800             output file being generated. A section is ignored when three
 801  801             conditions are true. The eliminated section must contribute to an
 802  802             allocatable segment. The eliminated section must provide no global
 803  803             symbols. No other section from any object that contributes to the
 804  804             link-edit, must reference an eliminated section.
 805  805  
 806  806  
 807  807         -z initarray=function
 808  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.
      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  811             The new entry is initialized to point to function. See
 812  812             Initialization and Termination Sections in Linker and Libraries
 813  813             Guide.
 814  814  
 815  815  
 816  816         -z initfirst
 817  817  
 818  818             Marks the object so that its runtime initialization occurs before
 819  819             the runtime initialization of any other objects brought into the
 820  820             process at the same time.  In addition, the object runtime
↓ open down ↓ 493 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX