aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-hp300.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-01 00:43:58 +0000
committerAlan Modra <amodra@gmail.com>2005-03-01 00:43:58 +0000
commit44f2f9d2a3fca1612061a377f6c6f512be635fff (patch)
treefc0679a0cb8eb8a0b0e7d08982fc5ef527ec9cf2 /gas/config/obj-hp300.c
parent70bfececf5f88eb75203859f69a5382bad663f9b (diff)
downloadgdb-44f2f9d2a3fca1612061a377f6c6f512be635fff.zip
gdb-44f2f9d2a3fca1612061a377f6c6f512be635fff.tar.gz
gdb-44f2f9d2a3fca1612061a377f6c6f512be635fff.tar.bz2
* configure.in (AC_C_BIGENDIAN): Invoke.
* configure: Regenerate. * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof host variable to set string header size. * config/obj-aout.c (obj_header_append): Don't use host structs. (obj_symbol_to_chars): Likewise. (obj_emit_strings): Likewise. Use the passed in output pointer. * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE. * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size, not sizeof host struct. (obj_header_append, obj_symbol_to_chars): Don't use host structs. (obj_emit_strings): Likewise. * config/obj-bout.h (EXEC_BYTES_SIZE): Define. (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of sizeof host struct. (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using sizeof host struct. (host_number_to_chars): Define. * config/obj-hp300.c (hp300_header_append): Don't use sizeof host internal struct to set header sizes. * config/tc-i960.c (md_number_to_field): Warning fix. (md_ri_to_chars): Use host byte order. (get_cdisp, md_apply_fix3): Warning fix.
Diffstat (limited to 'gas/config/obj-hp300.c')
-rw-r--r--gas/config/obj-hp300.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/obj-hp300.c b/gas/config/obj-hp300.c
index 2fc0f25..0dc3435 100644
--- a/gas/config/obj-hp300.c
+++ b/gas/config/obj-hp300.c
@@ -1,5 +1,5 @@
/* This file is obj-hp300.h
- Copyright 1993, 2000 Free Software Foundation, Inc.
+ Copyright 1993, 2000, 2005 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -30,8 +30,9 @@ hp300_header_append (where, headers)
#define DO(FIELD) \
{ \
- md_number_to_chars (*where, headers->header.FIELD, sizeof (headers->header.FIELD)); \
- *where += sizeof (headers->header.FIELD); \
+ md_number_to_chars (*where, headers->header.FIELD, \
+ sizeof (((struct exec_bytes *) 0)->FIELD)); \
+ *where += sizeof (((struct exec_bytes *) 0)->FIELD); \
}
DO (a_info);