Print this page
10366 ld(1) should support GNU-style linker sets
10581 ld(1) should know kernel modules are a thing

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libconv/common/dynamic.c
          +++ new/usr/src/cmd/sgs/libconv/common/dynamic.c
↓ open down ↓ 106 lines elided ↑ open up ↑
 107  107  }
 108  108  
 109  109  const Val_desc *
 110  110  conv_dyn_flag_strings(Conv_fmt_flags_t fmt_flags)
 111  111  {
 112  112  #define FLAGSZ  CONV_EXPN_FIELD_DEF_PREFIX_SIZE + \
 113  113          MSG_DF_ORIGIN_CF_SIZE           + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
 114  114          MSG_DF_SYMBOLIC_CF_SIZE         + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
 115  115          MSG_DF_TEXTREL_CF_SIZE          + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
 116  116          MSG_DF_BIND_NOW_CF_SIZE         + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
 117      -        MSG_DF_STATIC_TLS_CF_SIZE       + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
      117 +        MSG_DF_STATIC_TLS_CF_SIZE       + CONV_EXPN_FIELD_DEF_SEP_SIZE + \
 118  118          CONV_INV_BUFSIZE + CONV_EXPN_FIELD_DEF_SUFFIX_SIZE
 119  119  
 120  120          /*
 121  121           * Ensure that Conv_dyn_flag_buf_t is large enough:
 122  122           *
 123  123           * FLAGSZ is the real minimum size of the buffer required by
 124  124           * conv_dyn_flag(). However, Conv_dyn_flag_buf_t uses
 125  125           * CONV_DYN_FLAG_BUFSIZE to set the buffer size. We do things this
 126  126           * way because the definition of FLAGSZ uses information that is not
 127  127           * available in the environment of other programs that include the
↓ open down ↓ 422 lines elided ↑ open up ↑
 550  550                  MSG_DT_SUNW_AUXILIARY_CF,       MSG_DT_SUNW_RTLDINF_CF,
 551  551                  MSG_DT_SUNW_FILTER_CF,          MSG_DT_SUNW_CAP_CF,
 552  552                  MSG_DT_SUNW_SYMTAB_CF,          MSG_DT_SUNW_SYMSZ_CF,
 553  553                  MSG_DT_SUNW_SORTENT_CF,         MSG_DT_SUNW_SYMSORT_CF,
 554  554                  MSG_DT_SUNW_SYMSORTSZ_CF,       MSG_DT_SUNW_TLSSORT_CF,
 555  555                  MSG_DT_SUNW_TLSSORTSZ_CF,       MSG_DT_SUNW_CAPINFO_CF,
 556  556                  MSG_DT_SUNW_STRPAD_CF,          MSG_DT_SUNW_CAPCHAIN_CF,
 557  557                  MSG_DT_SUNW_LDMACH_CF,          0,
 558  558                  MSG_DT_SUNW_CAPCHAINENT_CF,     0,
 559  559                  MSG_DT_SUNW_CAPCHAINSZ_CF,      0,
 560      -                0,                              0,
 561      -                MSG_DT_SUNW_ASLR_CF
      560 +                0,                              0,
      561 +                MSG_DT_SUNW_ASLR_CF,            0,
      562 +                0,                              0,
      563 +                MSG_DT_SUNW_KMOD_CF
 562  564          };
 563  565          static const Msg        tags_sunw_auxiliary_cfnp[] = {
 564  566                  MSG_DT_SUNW_AUXILIARY_CFNP,     MSG_DT_SUNW_RTLDINF_CFNP,
 565  567                  MSG_DT_SUNW_FILTER_CFNP,        MSG_DT_SUNW_CAP_CFNP,
 566  568                  MSG_DT_SUNW_SYMTAB_CFNP,        MSG_DT_SUNW_SYMSZ_CFNP,
 567  569                  MSG_DT_SUNW_SORTENT_CFNP,       MSG_DT_SUNW_SYMSORT_CFNP,
 568  570                  MSG_DT_SUNW_SYMSORTSZ_CFNP,     MSG_DT_SUNW_TLSSORT_CFNP,
 569  571                  MSG_DT_SUNW_TLSSORTSZ_CFNP,     MSG_DT_SUNW_CAPINFO_CFNP,
 570  572                  MSG_DT_SUNW_STRPAD_CFNP,        MSG_DT_SUNW_CAPCHAIN_CFNP,
 571  573                  MSG_DT_SUNW_LDMACH_CFNP,        0,
 572  574                  MSG_DT_SUNW_CAPCHAINENT_CFNP,   0,
 573  575                  MSG_DT_SUNW_CAPCHAINSZ_CFNP,    0,
 574  576                  0,                              0,
 575      -                MSG_DT_SUNW_ASLR_CFNP
      577 +                MSG_DT_SUNW_ASLR_CFNP,          0,
      578 +                0,                              0,
      579 +                MSG_DT_SUNW_KMOD_CFNP
 576  580          };
 577  581          static const Msg        tags_sunw_auxiliary_nf[] = {
 578  582                  MSG_DT_SUNW_AUXILIARY_NF,       MSG_DT_SUNW_RTLDINF_NF,
 579  583                  MSG_DT_SUNW_FILTER_NF,          MSG_DT_SUNW_CAP_NF,
 580  584                  MSG_DT_SUNW_SYMTAB_NF,          MSG_DT_SUNW_SYMSZ_NF,
 581  585                  MSG_DT_SUNW_SORTENT_NF,         MSG_DT_SUNW_SYMSORT_NF,
 582  586                  MSG_DT_SUNW_SYMSORTSZ_NF,       MSG_DT_SUNW_TLSSORT_NF,
 583  587                  MSG_DT_SUNW_TLSSORTSZ_NF,       MSG_DT_SUNW_CAPINFO_NF,
 584  588                  MSG_DT_SUNW_STRPAD_NF,          MSG_DT_SUNW_CAPCHAIN_NF,
 585  589                  MSG_DT_SUNW_LDMACH_NF,          0,
 586  590                  MSG_DT_SUNW_CAPCHAINENT_NF,     0,
 587  591                  MSG_DT_SUNW_CAPCHAINSZ_NF,      0,
 588  592                  0,                              0,
 589      -                MSG_DT_SUNW_ASLR_NF
      593 +                MSG_DT_SUNW_ASLR_NF,            0,
      594 +                0,                              0,
      595 +                MSG_DT_SUNW_KMOD_NF
 590  596          };
 591  597          static const conv_ds_msg_t ds_sunw_auxiliary_cf = {
 592  598              CONV_DS_MSG_INIT(DT_SUNW_AUXILIARY, tags_sunw_auxiliary_cf) };
 593  599          static const conv_ds_msg_t ds_sunw_auxiliary_cfnp = {
 594  600              CONV_DS_MSG_INIT(DT_SUNW_AUXILIARY, tags_sunw_auxiliary_cfnp) };
 595  601          static const conv_ds_msg_t ds_sunw_auxiliary_nf = {
 596  602              CONV_DS_MSG_INIT(DT_SUNW_AUXILIARY, tags_sunw_auxiliary_nf) };
 597  603  
 598  604          /*
 599  605           * GNU: (In DT_VALRNGLO section) DT_GNU_PRELINKED - DT_GNU_LIBLISTSZ
↓ open down ↓ 388 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX