* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers

cannot contain any sections.
This commit is contained in:
Alan Modra 2010-04-08 02:09:59 +00:00
parent f8fbd1ea58
commit d96fead7bb
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-04-08 David Stubbs <stubbs@icerasemi.com>
* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers
cannot contain any sections.
2010-03-25 Joseph Myers <joseph@codesourcery.com> 2010-03-25 Joseph Myers <joseph@codesourcery.com>
* common.h (ELFOSABI_C6000_ELFABI, ELFOSABI_C6000_LINUX): Define. * common.h (ELFOSABI_C6000_ELFABI, ELFOSABI_C6000_LINUX): Define.

View File

@ -1,6 +1,6 @@
/* ELF support for BFD. /* ELF support for BFD.
Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002, Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002,
2003, 2006, 2007, 2008 Free Software Foundation, Inc. 2003, 2006, 2007, 2008, 2010 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and in "UNIX System V Release 4, Programmers Guide: ANSI C and
@ -306,7 +306,8 @@ struct elf_segment_map
|| segment->p_type == PT_GNU_RELRO \ || segment->p_type == PT_GNU_RELRO \
|| segment->p_type == PT_LOAD)) \ || segment->p_type == PT_LOAD)) \
|| ((sec_hdr->sh_flags & SHF_TLS) == 0 \ || ((sec_hdr->sh_flags & SHF_TLS) == 0 \
&& segment->p_type != PT_TLS)) \ && segment->p_type != PT_TLS \
&& segment->p_type != PT_PHDR)) \
/* Any section besides one of type SHT_NOBITS must have a file \ /* Any section besides one of type SHT_NOBITS must have a file \
offset within the segment. */ \ offset within the segment. */ \
&& (sec_hdr->sh_type == SHT_NOBITS \ && (sec_hdr->sh_type == SHT_NOBITS \