summaryrefslogtreecommitdiff
path: root/linker/linker_phdr.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-08-22 10:36:23 -0700
committerElliott Hughes <enh@google.com>2018-08-22 10:36:23 -0700
commit99d54656bda40edb817e6bc6de9a85d88ef4e6b5 (patch)
tree1a176f12c89582f0d06a3376ef66c6281d8af01c /linker/linker_phdr.cpp
parent8f2298e73f4d930b58a8466fd7264e9a88c96d99 (diff)
Add PR_SET_VMA and PR_SET_VMA_ANON_NAME to <sys/prctl.h>.
We've copied & pasted these to too many places. And if we're going to have another go at upstreaming these, that's probably yet another reason to have the *values* in just one place. (Even if upstream wants different names, we'll likely keep the legacy names around for a while for source compatibility.) Bug: http://b/111903542 Test: ran tests Change-Id: I8ccc557453d69530e5b74f865cbe0b458c84e3ba
Diffstat (limited to 'linker/linker_phdr.cpp')
-rw-r--r--linker/linker_phdr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_phdr.cpp b/linker/linker_phdr.cpp
index 54354a826..0a7ccd800 100644
--- a/linker/linker_phdr.cpp
+++ b/linker/linker_phdr.cpp
@@ -31,6 +31,7 @@
#include <errno.h>
#include <string.h>
#include <sys/mman.h>
+#include <sys/prctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -41,7 +42,6 @@
#include "linker_debug.h"
#include "linker_utils.h"
-#include "private/bionic_prctl.h"
#include "private/CFIShadow.h" // For kLibraryAlignment
static int GetTargetElfMachine() {