(root)/
binutils-2.41/
ld/
testsuite/
ld-x86-64/
protected-data-1a.c
       1  #include "protected-data-1.h"
       2  
       3  int protected_data_1a __attribute__ ((visibility("protected"))) = 1;
       4  int protected_data_1b __attribute__ ((visibility("protected"))) = 2;
       5  
       6  int *
       7  protected_data_1a_p (void)
       8  {
       9    return &protected_data_1a;
      10  }
      11  
      12  int *
      13  protected_data_1b_p (void)
      14  {
      15    return &protected_data_1b;
      16  }
      17  
      18  void
      19  set_protected_data_1a (int i)
      20  {
      21    protected_data_1a = i;
      22  }
      23  
      24  void
      25  set_protected_data_1b (int i)
      26  {
      27    protected_data_1b = i;
      28  }
      29  
      30  int
      31  check_protected_data_1a (int i)
      32  {
      33    return protected_data_1a == i ? 0 : 1;
      34  }
      35  
      36  int
      37  check_protected_data_1b (int i)
      38  {
      39    return protected_data_1b == i ? 0 : 1;
      40  }