diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-17 21:37:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-17 21:37:32 +0000 |
commit | 5e65fbc84bb16a38fce7ac6fcd5786795437d65a (patch) | |
tree | 5a96c70ad65b7406f1182f69edf76cb9d35f0343 /gas/configure.in | |
parent | 42f62ead47a3896f99481a015703c225975a1423 (diff) | |
download | fsf-binutils-gdb-5e65fbc84bb16a38fce7ac6fcd5786795437d65a.zip fsf-binutils-gdb-5e65fbc84bb16a38fce7ac6fcd5786795437d65a.tar.gz fsf-binutils-gdb-5e65fbc84bb16a38fce7ac6fcd5786795437d65a.tar.bz2 |
Some support for PowerPC ELF, although it isn't in BFD yet.
* configure.in: If cpu is powerpc*, use ppc.
(ppc-*-sysv4*): Use object format elf.
* config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
defined.
(TARGET_ARCH): Make it call ppc_arch.
(ppc_arch): Declare.
(TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
(NO_STRING_ESCAPES): Define.
(LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
* config/tc-ppc.c: Only define a number of functions of OBJ_COFF
is defined.
(md_pseudo_table): Most pseudo-ops are OBJ_COFF specific. Added
OBJ_COFF specific "bi" and "ei".
(md_parse_option): Fix handling of -u. Make -m601 set
PPC_OPCODE_601. If OBJ_ELF, accept -V and -Q.
(ppc_set_cpu): New function.
(ppc_arch): New function.
(md_begin): Call ppc_set_cpu.
(ppc_insert_operand): For a signed operand accept an unsigned
value, for IBM compatibility.
(ppc_byte): Don't call stringer for strings; instead, treat two
double quotes as a single double quote.
(ppc_comm): Set sy_tc.output for a .lcomm symbol.
(ppc_biei): New function.
(ppc_tc): If not OBJ_COFF, ignore first argument.
(ppc_fix_adjustable): Call as_bad_where, not as_bad.
(ppc_is_toc_sym): New function.
(md_apply_fix): Use ppc_is_toc_sym. Handle BFD_RELOC_16 and
BFD_RELOC_8.
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/configure.in b/gas/configure.in index 37ff4cd..95db4c9 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -113,6 +113,7 @@ case ${target_cpu} in m8*) cpu_type=m88k ;; mips*el) cpu_type=mips endian=little;; mips*) cpu_type=mips ;; + powerpc*) cpu_type=ppc ;; rs6000*) cpu_type=ppc ;; sparc64) cpu_type=sparc64 obj_format=elf ;; # v9 sparclite*) cpu_type=sparc ;; @@ -200,6 +201,7 @@ case ${generic_target} in ;; ppc-*-aix*) obj_format=coff bfd_gas=yes ;; + ppc-*-sysv4*) obj_format=elf bfd_gas=yes ;; sh-*-coff) obj_format=coffbfd ;; |