root/Whitix/trunk/include/sections.h

Revision 1668, 1.3 KB (checked in by mwhitworth, 3 years ago)

Merge in changes from keobject.

Line 
1/*  This file is part of Whitix.
2 *
3 *  Whitix is free software; you can redistribute it and/or modify
4 *  it under the terms of the GNU General Public License as published by
5 *  the Free Software Foundation; either version 2 of the License, or
6 *  (at your option) any later version.
7 *
8 *  Whitix is distributed in the hope that it will be useful,
9 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 *  GNU General Public License for more details.
12 *
13 *  You should have received a copy of the GNU General Public License
14 *  along with Whitix; if not, write to the Free Software
15 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16 *
17 */
18
19#ifndef SECTIONS_H
20#define SECTIONS_H
21
22/* Saves declaring all these variables multiple times */
23
24extern char code[];
25extern char endCode[];
26extern char data[];
27extern char endData[];
28extern char bss[];
29extern char endbss[];
30extern char symstrings_start[];
31extern char symstrings_end[];
32extern char symtable_start[];
33extern char symtable_end[];
34extern char initcode_start[];
35extern char initcode_end[];
36extern char initdata_start[];
37extern char initdata_end[];
38extern char end[];
39
40#define initcode __attribute__((section(".initcode")))
41#define initdata __attribute__((section(".initdata")))
42
43#endif
Note: See TracBrowser for help on using the browser.