mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* 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.
This commit is contained in:
parent
7dc8f5ceec
commit
ebeb92533b
@ -1,3 +1,9 @@
|
||||
2001-10-05 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* 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 <aoliva@redhat.com>
|
||||
|
||||
* config/tc-mn10300.c (tc_gen_reloc): Don't free
|
||||
|
13
gas/read.c
13
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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user