From: Alan Modra Date: Thu, 11 May 2006 12:34:46 +0000 (+0000) Subject: * elf.c (_bfd_elf_init_private_section_data): Don't change X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fab5987e81904f2ce7a09e98b984b918f6ab5596;p=pf3gnuchains%2Fpf3gnuchains3x.git * elf.c (_bfd_elf_init_private_section_data): Don't change section type if already set. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7257acdaa0..a95fd4f5bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-05-11 Mike Bland + + * elf.c (_bfd_elf_init_private_section_data): Don't change + section type if already set. + 2006-05-10 Nick Clifton PR ld/2607 diff --git a/bfd/elf.c b/bfd/elf.c index 120c4b0868..fbd8432cf5 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -5911,7 +5911,8 @@ _bfd_elf_init_private_section_data (bfd *ibfd, output BFD section flags has been set to something different. elf_fake_sections will set ELF section type based on BFD section flags. */ - if (osec->flags == isec->flags || !osec->flags) + if (osec->flags == isec->flags + || (osec->flags == 0 && elf_section_type (osec) == SHT_NULL)) elf_section_type (osec) = elf_section_type (isec); /* Set things up for objcopy and relocatable link. The output