summaryrefslogtreecommitdiff
path: root/gdbserver/linux-low.cc
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2021-05-08 12:54:43 +0100
committerPedro Alves <pedro@palves.net>2021-05-08 13:09:52 +0100
commite2ea3a381a4a7c739419a8b76a2fd132f7c1f9b1 (patch)
treecd5c341d9f8c4b7cab457a2f6215eb6207b60b3d /gdbserver/linux-low.cc
parent8a16cc4b934b2dee897837b7c68b9393cfd5ef5a (diff)
downloadbinutils-gdb-e2ea3a381a4a7c739419a8b76a2fd132f7c1f9b1.tar.gz
Don't include sys/personality.h in linux-low.cc anymore
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.
Diffstat (limited to 'gdbserver/linux-low.cc')
-rw-r--r--gdbserver/linux-low.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
index 251a54f5c4a..ca3d25943df 100644
--- a/gdbserver/linux-low.cc
+++ b/gdbserver/linux-low.cc
@@ -60,13 +60,6 @@
#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