From ebeb92533bfee1f2e820f86116a140ad2ad26ba4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 5 Oct 2001 10:53:00 +0000 Subject: * subsegs.c (subseg_text_p): Return 0 for absolute section. * read.c (do_align): If in absolute section, warn about and ignore non-zero fill pattern. --- gas/read.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gas/read.c') diff --git a/gas/read.c b/gas/read.c index 80389b7..52de12d 100644 --- a/gas/read.c +++ b/gas/read.c @@ -1162,6 +1162,19 @@ do_align (n, fill, len, max) int len; int max; { + if (now_seg == absolute_section) + { + if (fill != NULL) + while (len-- > 0) + if (*fill++ != '\0') + { + as_warn (_("ignoring fill value in absolute section")); + break; + } + fill = NULL; + len = 0; + } + #ifdef md_do_align md_do_align (n, fill, len, max, just_record_alignment); #endif -- cgit v1.1