diff --git a/linker/linker.cpp b/linker/linker.cpp index f8963b59c..f14d8b48d 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -194,7 +194,7 @@ static void insert_soinfo_into_debug_map(soinfo* info) { // Copy the necessary fields into the debug structure. link_map* map = &(info->link_map_head); map->l_addr = info->load_bias; - map->l_name = reinterpret_cast(info->name); + map->l_name = info->name; map->l_ld = info->dynamic; // Stick the new library at the end of the list.