summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gas/config/tc-powerpc.h
blob: d498bff2bda05cf0a863be5f107fe4a8759053af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*	$OpenBSD: tc-powerpc.h,v 1.1 1998/02/15 18:49:43 niklas Exp $	*/

/* tc-ppc.h -- Header file for tc-ppc.c.
   Copyright (C) 1994 Free Software Foundation, Inc.
   Written by Ian Lance Taylor, Cygnus Support.

   This file is part of GAS, the GNU Assembler.

   GAS is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   GAS is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with GAS; see the file COPYING.  If not, write to
   the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

#ifndef	TC_POWERPC
#define TC_POWERPC

#ifdef	__NetBSD__
#include <machine/reloc.h>
#define	AOUT_MACHTYPE	149
#endif

/* For now, support only big-endian */
#define TARGET_BYTES_BIG_ENDIAN 1
#define PPC_BIG_ENDIAN 1

/* Default CPU: */
#define	TARGET_CPU	"powerpc"

/* Permit temporary numeric labels.  */
#define LOCAL_LABELS_FB 1

/* $ is used to refer to the current location.  */
#define DOLLAR_DOT

/* We don't need to handle .word strangely.  */
#define WORKING_DOT_WORD

/* The name of the global offset table generated by the compiler. */
#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"

#define	tc_headers_hook(a)
#define	tc_crawl_symbol_chain(a)
#define	tc_aout_pre_write_hook(a)

#define	LISTING_HEADER	"PowerPC GAS "

#endif	/* TC_POWERPC */