From 015b3352e5f79a89f766c5c42df731e00f30bbed Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Tue, 19 Aug 1997 16:46:03 +0000 Subject: [PATCH] Tue Aug 19 08:59:12 1997 Fred Fish * read.c (s_lcomm_internal): Renamed from s_lcomm, added arg to flag when alignment is in bytes instead of power of 2, and code to use that flag to convert alignment to bytes. (s_lcomm, s_lcomm_bytes): New helpers that call s_lcomm_internal. * read.h (s_lcomm_bytes): Add prototype. * config/obj-coff.c (write_object_file): If ALIGNMENT_IN_S_FLAGS is defined, write alignment to alignment bits in section header s_flags rather than the s_align field. start-sanitize-tic80 * config/obj-coff.h (ALIGNMENT_IN_S_FLAGS): Define for TC_TIC80. * config/tc-tic80.c (md_pseudo_table): Use s_lcomm_bytes for bss pseudo, instead of s_lcomm which wants a power of two for alignment. end-sanitize-tic80 PR 12215 and PR 13061 --- gas/ChangeLog | 16 ++++++++++++++++ gas/config/tc-tic80.c | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 33c6c04652..93301d57a0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,19 @@ +Tue Aug 19 08:59:12 1997 Fred Fish + + * read.c (s_lcomm_internal): Renamed from s_lcomm, added arg to + flag when alignment is in bytes instead of power of 2, and code to + use that flag to convert alignment to bytes. + (s_lcomm, s_lcomm_bytes): New helpers that call s_lcomm_internal. + * read.h (s_lcomm_bytes): Add prototype. + * config/obj-coff.c (write_object_file): If ALIGNMENT_IN_S_FLAGS is + defined, write alignment to alignment bits in section header s_flags + rather than the s_align field. +start-sanitize-tic80 + * config/obj-coff.h (ALIGNMENT_IN_S_FLAGS): Define for TC_TIC80. + * config/tc-tic80.c (md_pseudo_table): Use s_lcomm_bytes for bss + pseudo, instead of s_lcomm which wants a power of two for alignment. +end-sanitize-tic80 + Mon Aug 18 20:42:23 1997 Richard Henderson * macro.c (check_macro): use alloca instead of xmalloc to plug leak. diff --git a/gas/config/tc-tic80.c b/gas/config/tc-tic80.c index 1ef46c075c..9c33eaa34e 100644 --- a/gas/config/tc-tic80.c +++ b/gas/config/tc-tic80.c @@ -61,7 +61,7 @@ const pseudo_typeS md_pseudo_table[] = { { "align", s_align_bytes, 4 }, /* Do byte alignment, default is a 4 byte boundary */ { "word", cons, 4 }, /* FIXME: Should this be machine independent? */ - { "bss", s_lcomm, 1 }, + { "bss", s_lcomm_bytes, 1 }, { "sect", obj_coff_section, 0}, /* For compatibility with TI tools */ { "section", obj_coff_section, 0}, /* Standard COFF .section pseudo-op */ { NULL, NULL, 0 } -- 2.34.1