From 44f2f9d2a3fca1612061a377f6c6f512be635fff Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 1 Mar 2005 00:43:58 +0000 Subject: * configure.in (AC_C_BIGENDIAN): Invoke. * configure: Regenerate. * write.c (write_object_file ): 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. --- gas/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/write.c') diff --git a/gas/write.c b/gas/write.c index f6a1c7e..c0749e8 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1569,11 +1569,11 @@ write_object_file (void) Count the number of string-table chars we will emit. Put this info into the headers as appropriate. */ know (zero_address_frag.fr_address == 0); - string_byte_count = sizeof (string_byte_count); + string_byte_count = 4; obj_crawl_symbol_chain (&headers); - if (string_byte_count == sizeof (string_byte_count)) + if (string_byte_count == 4) string_byte_count = 0; H_SET_STRING_SIZE (&headers, string_byte_count); -- cgit v1.1