aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-05-24 12:45:03 -0700
committerAndreas Gampe <agampe@google.com>2018-05-24 12:45:03 -0700
commit0c1a9cab2ffc52d4969d6148539f8b6f67387d00 (patch)
treea4c85d4421843d6131f2987a034b4ae688119201
parent91b43a4dfe8239a38434d6d4a1f272139b915896 (diff)
downloadlibunwind-0c1a9cab2ffc52d4969d6148539f8b6f67387d00.tar.gz
Ignore the vsyscall map on newer Linux hosts. Test: m Change-Id: I46391083d5cc7e46aeee20f9bf6b151290daad28
-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))
{