This file is indexed.

/usr/include/omniORB4/linkHacks.h is in libomniorb4-dev 4.1.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// -*- Mode: C++; -*-
//                            Package   : omniORB2
// linkHacks.h                Created on: 26/07/2001
//                            Author    : Duncan Grisby (dpg1)
//
//    Copyright (C) 2001 AT&T Laboratories, Cambridge
//
//    This file is part of the omniORB library
//
//    The omniORB library is free software; you can redistribute it and/or
//    modify it under the terms of the GNU Library General Public
//    License as published by the Free Software Foundation; either
//    version 2 of the License, or (at your option) any later version.
//
//    This library is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//    Library General Public License for more details.
//
//    You should have received a copy of the GNU Library General Public
//    License along with this library; if not, write to the Free
//    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
//    02111-1307, USA
//
//
// Description:
//	*** PROPRIETARY INTERFACE ***
//

// Macros to alleviate the sheer ugliness of forcing modules with
// static initialisers to run, even when statically linked.

#ifndef __LINKHACKS_H__
#define __LINKHACKS_H__

//
// OMNI_EXPORT_LINK_FORCE_SYMBOL exports a symbol from a module
//

#if defined(__vxWorks__)

#define OMNI_EXPORT_LINK_FORCE_SYMBOL(modname) \
  int _omni_ ## modname ## _should_be_linked_but_is_not_; \
  void _dummy_ ## modname ## _workaround_for_bug_in_munch_2_cdtor_c_ () {}

#else

#define OMNI_EXPORT_LINK_FORCE_SYMBOL(modname) \
  int _omni_ ## modname ## _should_be_linked_but_is_not_ = 0

#endif


//
// OMNI_FORCE_LINK forces linking with a module
//

#if defined(OMNI_NEED_STATIC_FUNC_TO_FORCE_LINK)

// Some compilers/linkers are too clever for their own good and remove
// the unused reference to the forcelink symbol. Having a function
// that references it seems to help.

#define OMNI_FORCE_LINK(modname) \
  extern int _omni_ ## modname ## _should_be_linked_but_is_not_; \
  static int _omni_ ## modname ## _forcelink_ = \
                        _omni_ ## modname ## _should_be_linked_but_is_not_++; \
  static int _omni_ ## modname ## _value_ () { \
    return _omni_ ## modname ## _forcelink_; \
  }

#elif defined(_MSC_VER)

// The Windows non-uniform memory model means that we cannot access
// the integer's value. Referring to its address is sufficient to
// force MSVC to link correctly.

#define OMNI_FORCE_LINK(modname) \
  extern int _omni_ ## modname ## _should_be_linked_but_is_not_; \
  static int* _omni_ ## modname ## _forcelink_ = \
                         &_omni_ ## modname ## _should_be_linked_but_is_not_

#else

// On other platforms, we modify the integer, ensuring we properly
// link to it.

#define OMNI_FORCE_LINK(modname) \
  extern int _omni_ ## modname ## _should_be_linked_but_is_not_; \
  static int _omni_ ## modname ## _forcelink_ = \
                         _omni_ ## modname ## _should_be_linked_but_is_not_++

#endif


#endif // __LINKHACKS_H__