IPA: Fix build problem on !HAVE_GETAUXVAL
These files need AT_PHDR, which is defined in elf.h. If HAVE_GETAUXVAL is set, it's implicitely included by sys/auxv.h. Include it manually for the opposite case. gdb/gdbserver/ChangeLog: * linux-aarch64-ipa.c: Add <elf.h> include. * linux-ppc-ipa.c: Add <elf.h> include. * linux-s390-ipa.c: Add <elf.h> include.
This commit is contained in:
parent
4b0046f325
commit
d0a9981f37
4 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
|
||||
|
||||
* linux-aarch64-ipa.c: Add <elf.h> include.
|
||||
* linux-ppc-ipa.c: Add <elf.h> include.
|
||||
* linux-s390-ipa.c: Add <elf.h> include.
|
||||
|
||||
2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
|
||||
|
||||
* tracepoint.c (gdb_collect_ptr): Remove const qualifier.
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "server.h"
|
||||
#include <sys/mman.h>
|
||||
#include "tracepoint.h"
|
||||
#include <elf.h>
|
||||
#ifdef HAVE_GETAUXVAL
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <sys/mman.h>
|
||||
#include "tracepoint.h"
|
||||
#include "linux-ppc-tdesc.h"
|
||||
#include <elf.h>
|
||||
#ifdef HAVE_GETAUXVAL
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <sys/mman.h>
|
||||
#include "tracepoint.h"
|
||||
#include "linux-s390-tdesc.h"
|
||||
#include <elf.h>
|
||||
#ifdef HAVE_GETAUXVAL
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue