xref: /dflybsd-src/contrib/gcc-4.7/libobjc/linking.m (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino/* Force linking of classes required by Objective C runtime.
2*e4b17023SJohn Marino   Copyright (C) 1997, 2009, 2010 Free Software Foundation, Inc.
3*e4b17023SJohn Marino   Contributed by Ovidiu Predescu (ovidiu@net-community.com).
4*e4b17023SJohn Marino
5*e4b17023SJohn MarinoThis file is part of GCC.
6*e4b17023SJohn Marino
7*e4b17023SJohn MarinoGCC is free software; you can redistribute it and/or modify
8*e4b17023SJohn Marinoit under the terms of the GNU General Public License as published by
9*e4b17023SJohn Marinothe Free Software Foundation; either version 3, or (at your option)
10*e4b17023SJohn Marinoany later version.
11*e4b17023SJohn Marino
12*e4b17023SJohn MarinoGCC is distributed in the hope that it will be useful,
13*e4b17023SJohn Marinobut WITHOUT ANY WARRANTY; without even the implied warranty of
14*e4b17023SJohn MarinoMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*e4b17023SJohn MarinoGNU General Public License for more details.
16*e4b17023SJohn Marino
17*e4b17023SJohn MarinoUnder Section 7 of GPL version 3, you are granted additional
18*e4b17023SJohn Marinopermissions described in the GCC Runtime Library Exception, version
19*e4b17023SJohn Marino3.1, as published by the Free Software Foundation.
20*e4b17023SJohn Marino
21*e4b17023SJohn MarinoYou should have received a copy of the GNU General Public License and
22*e4b17023SJohn Marinoa copy of the GCC Runtime Library Exception along with this program;
23*e4b17023SJohn Marinosee the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24*e4b17023SJohn Marino<http://www.gnu.org/licenses/>.  */
25*e4b17023SJohn Marino
26*e4b17023SJohn Marino#include "objc-private/common.h"
27*e4b17023SJohn Marino#include <objc/Object.h>
28*e4b17023SJohn Marino
29*e4b17023SJohn Marino/* Generate references to Object class since it is needed by the
30*e4b17023SJohn Marino   runtime system to run correctly.  */
31*e4b17023SJohn Marino
32*e4b17023SJohn Marinovoid __objc_linking (void)
33*e4b17023SJohn Marino{
34*e4b17023SJohn Marino  [Object class];
35*e4b17023SJohn Marino}
36*e4b17023SJohn Marino
37