aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-05-24 15:35:57 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-05-24 15:35:57 -0700
commitf9e1920771cdfe38fdc89fe4eb97855a9005f098 (patch)
treea4c85d4421843d6131f2987a034b4ae688119201
parentf7c71c4af046d2741e18c6f43c771ebe0de6354b (diff)
parent0c1a9cab2ffc52d4969d6148539f8b6f67387d00 (diff)
downloadlibunwind-f9e1920771cdfe38fdc89fe4eb97855a9005f098.tar.gz
Libunwind: Ignore [vsyscall] map
am: 0c1a9cab2f Change-Id: I536d6a4aa25500396b1054f6ff083856497abcb9
-rw-r--r--src/os-linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os-linux.c b/src/os-linux.c
index 8dc1ebfc..0f914f24 100644
--- a/src/os-linux.c
+++ b/src/os-linux.c
@@ -78,6 +78,7 @@ map_create_list (int map_create_type, pid_t pid)
/* If this is a readable executable map, and not a stack map or an
empty map, find the load_base. */
if (cur_map->path[0] != '\0' && strncmp ("[stack:", cur_map->path, 7) != 0
+ && strncmp ("[vsyscall]", cur_map->path, 10) != 0
&& (flags & (PROT_EXEC | PROT_READ)) == (PROT_EXEC | PROT_READ)
&& !(cur_map->flags & MAP_FLAGS_DEVICE_MEM))
{