mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
(elf_fake_sections): Do not mark the section SHT_NOBITS if
is has the SEC_HAS_CONTENTS flag set.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2000-09-29 Momchil Velikov <velco@fadata.bg>
|
||||||
|
|
||||||
|
* elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
|
||||||
|
is has the SEC_HAS_CONTENTS flag set.
|
||||||
|
|
||||||
2000-09-28 <20>rjan Friberg <orjanf@axis.com>
|
2000-09-28 <20>rjan Friberg <orjanf@axis.com>
|
||||||
Hans-Peter Nilsson <hp@axis.com>
|
Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
@ -1787,16 +1787,10 @@ elf_fake_sections (abfd, asect, failedptrarg)
|
|||||||
|| this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
|
|| this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
|
||||||
}
|
}
|
||||||
else if ((asect->flags & SEC_ALLOC) != 0
|
else if ((asect->flags & SEC_ALLOC) != 0
|
||||||
&& (asect->flags & SEC_LOAD) != 0)
|
&& ((asect->flags & (SEC_LOAD | SEC_HAS_CONTENTS) == 0)))
|
||||||
this_hdr->sh_type = SHT_PROGBITS;
|
|
||||||
else if ((asect->flags & SEC_ALLOC) != 0
|
|
||||||
&& ((asect->flags & SEC_LOAD) == 0))
|
|
||||||
this_hdr->sh_type = SHT_NOBITS;
|
this_hdr->sh_type = SHT_NOBITS;
|
||||||
else
|
else
|
||||||
{
|
|
||||||
/* Who knows? */
|
|
||||||
this_hdr->sh_type = SHT_PROGBITS;
|
this_hdr->sh_type = SHT_PROGBITS;
|
||||||
}
|
|
||||||
|
|
||||||
if ((asect->flags & SEC_ALLOC) != 0)
|
if ((asect->flags & SEC_ALLOC) != 0)
|
||||||
this_hdr->sh_flags |= SHF_ALLOC;
|
this_hdr->sh_flags |= SHF_ALLOC;
|
||||||
|
Reference in New Issue
Block a user