1/**
2 * \file
3 * \brief C++ startup code. Contains .ctors section footer and ABI support.
4 */
5
6/*
7 * Copyright (c) 2007, 2008, 2009, 2010, 2011, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#include <stdio.h>
16#include <sys/_types.h>
17
18/// A global constructor takes no arguments and returns nothing
19typedef void (*CDtor)(void);
20
21/// NULL terminate the .ctors array
22static CDtor ctors[1]
23__attribute__ ((used, section(".ctors"), aligned(sizeof(CDtor))))
24    = { (CDtor)(0) };
25