nptl: Rename nptl_version to __nptl_version
authorFlorian Weimer <fweimer@redhat.com>
Mon, 28 Jun 2021 12:33:53 +0000 (14:33 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 28 Jun 2021 12:34:48 +0000 (14:34 +0200)
This prepares it for exporting as a dynamic symbol.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
nptl_db/structs.def
nptl_db/td_ta_new.c

index fb7bb93..248ecf4 100644 (file)
@@ -73,7 +73,7 @@ DB_STRUCT (td_eventbuf_t)
 DB_STRUCT_FIELD (td_eventbuf_t, eventnum)
 DB_STRUCT_FIELD (td_eventbuf_t, eventdata)
 
-DB_SYMBOL (nptl_version)
+DB_SYMBOL (__nptl_version)
 DB_SYMBOL (__nptl_create_event)
 DB_SYMBOL (__nptl_death_event)
 DB_SYMBOL (__nptl_threads_events)
index 501d922..eeca29d 100644 (file)
@@ -39,7 +39,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **ta)
   LOG ("td_ta_new");
 
   /* Check whether the versions match.  */
-  if (td_lookup (ps, SYM_nptl_version, &versaddr) != PS_OK)
+  if (td_lookup (ps, SYM___nptl_version, &versaddr) != PS_OK)
     return TD_NOLIBTHREAD;
   if (ps_pdread (ps, versaddr, versbuf, sizeof (versbuf)) != PS_OK)
     return TD_ERR;