]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
IPA: Fix build problem on !HAVE_GETAUXVAL
authorMarcin Kościelnicki <koriakin@0x04.net>
Sun, 3 Apr 2016 12:25:25 +0000 (14:25 +0200)
committerMarcin Kościelnicki <koriakin@0x04.net>
Sun, 3 Apr 2016 16:27:50 +0000 (18:27 +0200)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-ipa.c
gdb/gdbserver/linux-ppc-ipa.c
gdb/gdbserver/linux-s390-ipa.c

index 39a1be03359df0d43d460d37f76716ee1498ea91..7b20fdb8f44b7dd9c493057485c90ce1a2a2f200 100644 (file)
@@ -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.
index 50caeae4f3f46d58daffaed948d32757f1802832..601d61c9699f2a6c3e0190ad911cddbdfe8fc4d0 100644 (file)
@@ -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
index 8489c6e2abb2bea611752fbaa4952cdc02ed7444..d8f118eb7fbca5ca020bbe1746e1b549d8711f94 100644 (file)
@@ -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
index a9f86ad44416bc17ceccdb4256fe15b90a7b2e36..cdf2fe72f43b0395b0144de326404fedb69deecb 100644 (file)
@@ -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