Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: pnacl/support/clang_direct/crtbegin.c

Issue 639113003: Add nacl-clang testing to SCons (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: ncbray comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * This is nacl-clang's crtbegin file (crtbegin.o, crtbeginS.o, crtbeginT.o). 8 * This is nacl-clang's crtbegin file (crtbegin.o, crtbeginS.o, crtbeginT.o).
9 * Currently we only support static linking and it only supports being used 9 * Currently we only support static linking and it only supports being used
10 * as crtbeginT.o (see __dso_handle below). 10 * as crtbeginT.o (see __dso_handle below).
11 * Currently it is also just an aggregation of what PNaCl uses, and is enough
12 * to compile our tests, but in particular C++ EH doesn't work yet.
13 * TODO(dschuff): Make EH work.
14 */ 11 */
15 12
16 /* 13 /*
17 * HACK: 14 * HACK:
18 * The real structure is defined in unwind-dw2-fde.h 15 * The real structure is defined in unwind-dw2-fde.h
19 * this is something that is at least twice as big. 16 * this is something that is at least twice as big.
20 */ 17 */
21 struct object { 18 struct object {
22 void *p[16] __attribute__((aligned(8))); 19 void *p[16] __attribute__((aligned(8)));
23 }; 20 };
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 * http://gcc.gnu.org/ml/gcc-patches/1999-12n/msg00664.html 65 * http://gcc.gnu.org/ml/gcc-patches/1999-12n/msg00664.html
69 * 66 *
70 * (Note that __cxa_* functions are usually provided by libsupc++ or 67 * (Note that __cxa_* functions are usually provided by libsupc++ or
71 * its equivalent, but __cxa_atexit() happens to be provided by libc.) 68 * its equivalent, but __cxa_atexit() happens to be provided by libc.)
72 * 69 *
73 * __dso_handle is zero for the main executable, which is the only 70 * __dso_handle is zero for the main executable, which is the only
74 * case currently supported by this crtbegin. 71 * case currently supported by this crtbegin.
75 */ 72 */
76 73
77 void *__dso_handle = 0; 74 void *__dso_handle = 0;
OLDNEW
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698