mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* elf.c (_bfd_elf_init_private_section_data): Don't change
section type if already set.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-05-11 Mike Bland <mbland@google.com>
|
||||||
|
|
||||||
|
* elf.c (_bfd_elf_init_private_section_data): Don't change
|
||||||
|
section type if already set.
|
||||||
|
|
||||||
2006-05-10 Nick Clifton <nickc@redhat.com>
|
2006-05-10 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR ld/2607
|
PR ld/2607
|
||||||
|
@ -5911,7 +5911,8 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
|
|||||||
output BFD section flags has been set to something different.
|
output BFD section flags has been set to something different.
|
||||||
elf_fake_sections will set ELF section type based on BFD
|
elf_fake_sections will set ELF section type based on BFD
|
||||||
section flags. */
|
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);
|
elf_section_type (osec) = elf_section_type (isec);
|
||||||
|
|
||||||
/* Set things up for objcopy and relocatable link. The output
|
/* Set things up for objcopy and relocatable link. The output
|
||||||
|
Reference in New Issue
Block a user