From: Pedro Alves Date: Sat, 8 May 2021 11:54:43 +0000 (+0100) Subject: Don't include sys/personality.h in linux-low.cc anymore X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2ea3a381a4a7c739419a8b76a2fd132f7c1f9b1;p=binutils-gdb.git 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. --- diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 94e489939c1..1047697b0ed 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2021-05-08 Pedro Alves + + * linux-low.cc: Don't include sys/personality.h or define + ADDR_NO_RANDOMIZE. + 2021-05-06 Tankut Baris Aktemur * server.cc (handle_v_attach) 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 -# if !HAVE_DECL_ADDR_NO_RANDOMIZE -# define ADDR_NO_RANDOMIZE 0x0040000 -# endif -#endif - #ifndef O_LARGEFILE #define O_LARGEFILE 0 #endif