| [10] | 1 | /* BFD back-end definitions used by all NetBSD targets.
|
|---|
| 2 | Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 2000
|
|---|
| 3 | Free Software Foundation, Inc.
|
|---|
| 4 |
|
|---|
| 5 | This file is part of BFD, the Binary File Descriptor library.
|
|---|
| 6 |
|
|---|
| 7 | This program is free software; you can redistribute it and/or modify
|
|---|
| 8 | it under the terms of the GNU General Public License as published by
|
|---|
| 9 | the Free Software Foundation; either version 2 of the License, or
|
|---|
| 10 | (at your option) any later version.
|
|---|
| 11 |
|
|---|
| 12 | This program is distributed in the hope that it will be useful,
|
|---|
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 15 | GNU General Public License for more details.
|
|---|
| 16 |
|
|---|
| 17 | You should have received a copy of the GNU General Public License
|
|---|
| 18 | along with this program; if not, write to the Free Software
|
|---|
| 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|---|
| 20 | USA. */
|
|---|
| 21 |
|
|---|
| 22 | /* Check for our machine type (part of magic number). */
|
|---|
| 23 | #ifndef MACHTYPE_OK
|
|---|
| 24 | #define MACHTYPE_OK(m) ((m) == DEFAULT_MID || (m) == M_UNKNOWN)
|
|---|
| 25 | #endif
|
|---|
| 26 |
|
|---|
| 27 | /* This is the normal load address for executables. */
|
|---|
| 28 | #define TEXT_START_ADDR TARGET_PAGE_SIZE
|
|---|
| 29 |
|
|---|
| 30 | /* NetBSD ZMAGIC has its header in the text segment. */
|
|---|
| 31 | #define N_HEADER_IN_TEXT(x) 1
|
|---|
| 32 |
|
|---|
| 33 | /* Determine if this is a shared library using the flags. */
|
|---|
| 34 | #define N_SHARED_LIB(x) (N_DYNAMIC(x))
|
|---|
| |
|---|