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/libld/common/globals.c
          +++ new/usr/src/cmd/sgs/libld/common/globals.c
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27   */
  28   28  
  29   29  /*
  30   30   * Global variables
  31   31   */
  32   32  #include        <sys/elf.h>
  33   33  #include        "msg.h"
  34   34  #include        "_libld.h"
  35   35  
  36   36  Ld_heap         *ld_heap;       /* list of allocated blocks for */
  37      -                                /*      link-edit dynamic allocations */
       37 +                                /*      link-edit dynamic allocations */
  38   38  APlist          *lib_support;   /* list of support libraries specified */
  39   39                                  /*      (-S option) */
  40   40  int             demangle_flag;  /* symbol demangling required */
  41   41  
  42   42  /*
  43   43   * Paths and directories for library searches.  These are used to set up
  44   44   * linked lists of directories which are maintained in the ofl structure.
  45   45   */
  46   46  char            *Plibpath;      /* User specified -YP or defaults to LIBPATH */
  47   47  char            *Llibdir;       /* User specified -YL */
↓ open down ↓ 23 lines elided ↑ open up ↑
  71   71                  MSG_REJ_HAL,            /* MSG_INTL(MSG_REJ_HAL) */
  72   72                  MSG_REJ_US3,            /* MSG_INTL(MSG_REJ_US3) */
  73   73                  MSG_REJ_STR,            /* MSG_INTL(MSG_REJ_STR) */
  74   74                  MSG_REJ_UNKFILE,        /* MSG_INTL(MSG_REJ_UNKFILE) */
  75   75                  MSG_REJ_UNKCAP,         /* MSG_INTL(MSG_REJ_UNKCAP) */
  76   76                  MSG_REJ_HWCAP_1,        /* MSG_INTL(MSG_REJ_HWCAP_1) */
  77   77                  MSG_REJ_SFCAP_1,        /* MSG_INTL(MSG_REJ_SFCAP_1) */
  78   78                  MSG_REJ_MACHCAP,        /* MSG_INTL(MSG_REJ_MACHCAP) */
  79   79                  MSG_REJ_PLATCAP,        /* MSG_INTL(MSG_REJ_PLATCAP) */
  80   80                  MSG_REJ_HWCAP_2,        /* MSG_INTL(MSG_REJ_HWCAP_2) */
  81      -                MSG_REJ_ARCHIVE         /* MSG_INTL(MSG_REJ_ARCHIVE) */
       81 +                MSG_REJ_ARCHIVE,        /* MSG_INTL(MSG_REJ_ARCHIVE) */
       82 +                MSG_REJ_KMOD            /* MSG_INTL(MSG_REJ_KMOD) */
  82   83          };
  83      -#if SGS_REJ_NUM != (SGS_REJ_ARCHIVE + 1)
       84 +#if SGS_REJ_NUM != (SGS_REJ_KMOD + 1)
  84   85  #error SGS_REJ_NUM has changed
  85   86  #endif
  86   87  
  87   88  /*
  88   89   * Symbol types that we include in .SUNW_ldynsym sections
  89   90   * (indexed by STT_ values).
  90   91   */
  91   92  const int
  92   93  ldynsym_symtype[] = {
  93   94                  0,                      /* STT_NOTYPE (not counting 1st slot) */
↓ open down ↓ 46 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX