Print this page
7319 Need a way to turn off ld "multiple inclusion" warnings
Reviewed by: Martin Bochnig <opensxce@mail.ru>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/include/libld.h
          +++ new/usr/src/cmd/sgs/include/libld.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   *      Copyright (c) 1988 AT&T
  24   24   *        All Rights Reserved
  25   25   *
  26   26   * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
       27 + * Copyright 2016 RackTop Systems.
  27   28   */
  28   29  
  29   30  #ifndef _LIBLD_H
  30   31  #define _LIBLD_H
  31   32  
  32   33  #include <stdlib.h>
  33   34  #include <libelf.h>
  34   35  #include <sgs.h>
  35   36  #include <_machelf.h>
  36   37  #include <string_table.h>
↓ open down ↓ 421 lines elided ↑ open up ↑
 458  459  #define FLG_OF_OSABI    0x010000000000  /* tag object as ELFOSABI_SOLARIS */
 459  460  #define FLG_OF_ADJOSCNT 0x020000000000  /* adjust ofl_shdrcnt to accommodate */
 460  461                                          /*      discarded sections */
 461  462  #define FLG_OF_OTOSCAP  0x040000000000  /* convert object capabilities to */
 462  463                                          /*      symbol capabilities */
 463  464  #define FLG_OF_PTCAP    0x080000000000  /* PT_SUNWCAP required */
 464  465  #define FLG_OF_CAPSTRS  0x100000000000  /* capability strings are required */
 465  466  #define FLG_OF_EHFRAME  0x200000000000  /* output contains .eh_frame section */
 466  467  #define FLG_OF_FATWARN  0x400000000000  /* make warnings fatal */
 467  468  #define FLG_OF_ADEFLIB  0x800000000000  /* no libraries in default path */
      469 +#define FLG_OF_MULINCL  0x1000000000000 /* allow multiple inclusions */
 468  470  
 469  471  /*
 470  472   * In the flags1 arena, establish any options that are applicable to archive
 471  473   * extraction first, and associate a mask.  These values are recorded with any
 472  474   * archive descriptor so that they may be reset should the archive require a
 473  475   * rescan to try and resolve undefined symbols.
 474  476   */
 475  477  #define FLG_OF1_ALLEXRT 0x0000000001    /* extract all members from an */
 476  478                                          /*      archive file */
 477  479  #define FLG_OF1_WEAKEXT 0x0000000002    /* allow archive extraction to */
↓ open down ↓ 1092 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX