diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-02-14 04:12:24 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-02-14 04:12:24 +0000 |
commit | 585fded29293a656a538d82b9480d949d4044a7b (patch) | |
tree | 370a8037b9514dcd5c0c0a65435d12945f1e239f /bfd/elf.c | |
parent | 32eb99e5b7b3259c026244b438dda90d801d7f92 (diff) | |
download | gdb-585fded29293a656a538d82b9480d949d4044a7b.tar.gz |
* elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c index f75eb8587d0..7f63b34adcc 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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; |