Commit | Line | Data |
---|---|---|
4f1d9bd8 NC |
1 | /* host.h - Parameters about the a.out format, based on the host system |
2 | on which the program is compiled. | |
3 | ||
4 | Copyright 2001 Free Software Foundation, Inc. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
e172dbf8 | 18 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
252b5132 RH |
19 | |
20 | /* Address of data segment in memory after it is loaded. | |
4f1d9bd8 | 21 | It is up to you to define SEGMENT_SIZE on machines not listed here. */ |
252b5132 | 22 | #ifndef SEGMENT_SIZE |
4f1d9bd8 | 23 | |
252b5132 RH |
24 | #if defined(hp300) || defined(pyr) |
25 | #define SEGMENT_SIZE page_size | |
26 | #endif | |
4f1d9bd8 | 27 | |
252b5132 RH |
28 | #ifdef sony |
29 | #define SEGMENT_SIZE 0x1000 | |
30 | #endif /* Sony. */ | |
4f1d9bd8 | 31 | |
252b5132 RH |
32 | #ifdef is68k |
33 | #define SEGMENT_SIZE 0x20000 | |
34 | #endif | |
4f1d9bd8 | 35 | |
252b5132 RH |
36 | #if defined(m68k) && defined(PORTAR) |
37 | #define TARGET_PAGE_SIZE 0x400 | |
38 | #define SEGMENT_SIZE TARGET_PAGE_SIZE | |
39 | #endif | |
4f1d9bd8 | 40 | |
252b5132 RH |
41 | #endif /*!defined(SEGMENT_SIZE)*/ |
42 |