| OLD | NEW |
| 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 Loading... |
| 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; |
| OLD | NEW |