From: Alan Modra Date: Fri, 5 Oct 2001 10:53:00 +0000 (+0000) Subject: * subsegs.c (subseg_text_p): Return 0 for absolute section. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=ebeb92533bfee1f2e820f86116a140ad2ad26ba4;p=deliverable%2Fbinutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index e1588d23bf..fe25ca923d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-10-05 Alan Modra + + * 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. + 2001-10-05 Alexandre Oliva * config/tc-mn10300.c (tc_gen_reloc): Don't free diff --git a/gas/read.c b/gas/read.c index 80389b7a53..52de12d64a 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 diff --git a/gas/subsegs.c b/gas/subsegs.c index f5a1022fdf..c8159531ef 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -587,7 +587,7 @@ subseg_text_p (sec) #else /* ! BFD_ASSEMBLER */ const char * const *p; - if (sec == data_section || sec == bss_section) + if (sec == data_section || sec == bss_section || sec == absolute_section) return 0; for (p = nontext_section_names; *p != NULL; ++p)