Don't include sys/personality.h in linux-low.cc anymore
authorPedro Alves <pedro@palves.net>
Sat, 8 May 2021 11:54:43 +0000 (12:54 +0100)
committerPedro Alves <pedro@palves.net>
Sat, 8 May 2021 12:09:52 +0000 (13:09 +0100)
Lancelot pointed out that since the refactor at:

  https://sourceware.org/pipermail/gdb-patches/2015-January/120503.html

the sys/personality.h include is not needed in linux-low.cc anymore,
as it does not call personality directly itself anymore.

gdbserver/ChangeLog:

* linux-low.cc: Don't include sys/personality.h or define
ADDR_NO_RANDOMIZE.

gdbserver/ChangeLog
gdbserver/linux-low.cc

index 94e489939c1a4754f7e107bdb54097158ce82a4b..1047697b0edaf430f0f1e046b3848bf98b63b432 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-08  Pedro Alves  <pedro@palves.net>
+
+       * linux-low.cc: Don't include sys/personality.h or define
+       ADDR_NO_RANDOMIZE.
+
 2021-05-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        * server.cc (handle_v_attach)
index 251a54f5c4aa0bad78c23405fd1be375a3d876da..ca3d25943df74e40d7db7d86492fb6d06b578a4a 100644 (file)
 #endif
 #include "nat/linux-namespaces.h"
 
-#ifdef HAVE_PERSONALITY
-# include <sys/personality.h>
-# if !HAVE_DECL_ADDR_NO_RANDOMIZE
-#  define ADDR_NO_RANDOMIZE 0x0040000
-# endif
-#endif
-
 #ifndef O_LARGEFILE
 #define O_LARGEFILE 0
 #endif