mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 20:53:06 +08:00
* elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2002-02-14 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
|
||||
|
||||
2002-02-17 Matt Fredette <fredette@netbsd.org>
|
||||
|
||||
* elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
|
||||
|
@ -2219,7 +2219,8 @@ elf_fake_sections (abfd, asect, failedptrarg)
|
||||
this_hdr->sh_entsize = 4;
|
||||
}
|
||||
else if ((asect->flags & SEC_ALLOC) != 0
|
||||
&& ((asect->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0))
|
||||
&& (((asect->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
|
||||
|| (asect->flags & SEC_NEVER_LOAD) != 0))
|
||||
this_hdr->sh_type = SHT_NOBITS;
|
||||
else
|
||||
this_hdr->sh_type = SHT_PROGBITS;
|
||||
|
Reference in New Issue
Block a user