From 8b95791f5b3923a4100c60011753355597bd4507 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 11 May 2006 12:34:46 +0000 Subject: * elf.c (_bfd_elf_init_private_section_data): Don't change section type if already set. --- bfd/elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elf.c') diff --git a/bfd/elf.c b/bfd/elf.c index 120c4b0..fbd8432 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 -- cgit v1.1