* elfcore.h: Include <signal.h> before <sys/procfs.h>.
PR 8807.
This commit is contained in:
parent
5826ca4cee
commit
80b99ca092
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* elfcore.h: Include <signal.h> before <sys/procfs.h>.
|
||||||
|
|
||||||
Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* cpu-powerpc.c (arch_info_struct): Change last entry to not point
|
* cpu-powerpc.c (arch_info_struct): Change last entry to not point
|
||||||
|
|
|
@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
/* Core file support */
|
/* Core file support */
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PROCFS_H /* Some core file support requires host /proc files */
|
#ifdef HAVE_SYS_PROCFS_H /* Some core file support requires host /proc files */
|
||||||
|
#include <signal.h>
|
||||||
#include <sys/procfs.h>
|
#include <sys/procfs.h>
|
||||||
#else
|
#else
|
||||||
#define bfd_prstatus(abfd, descdata, descsz, filepos) true
|
#define bfd_prstatus(abfd, descdata, descsz, filepos) true
|
||||||
|
@ -366,11 +367,11 @@ elf_core_file_p (abfd)
|
||||||
switch (x_ehdr.e_ident[EI_DATA])
|
switch (x_ehdr.e_ident[EI_DATA])
|
||||||
{
|
{
|
||||||
case ELFDATA2MSB: /* Big-endian */
|
case ELFDATA2MSB: /* Big-endian */
|
||||||
if (abfd->xvec->byteorder_big_p == false)
|
if (! bfd_big_endian (abfd))
|
||||||
goto wrong;
|
goto wrong;
|
||||||
break;
|
break;
|
||||||
case ELFDATA2LSB: /* Little-endian */
|
case ELFDATA2LSB: /* Little-endian */
|
||||||
if (abfd->xvec->byteorder_big_p == true)
|
if (! bfd_little_endian (abfd))
|
||||||
goto wrong;
|
goto wrong;
|
||||||
break;
|
break;
|
||||||
case ELFDATANONE: /* No data encoding specified */
|
case ELFDATANONE: /* No data encoding specified */
|
||||||
|
|
Loading…
Reference in New Issue