]> sourceware.org Git - glibc.git/commitdiff
csu: Update __libgcc_s_init comment
authorFlorian Weimer <fweimer@redhat.com>
Thu, 11 Jan 2018 12:13:28 +0000 (13:13 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 11 Jan 2018 12:13:28 +0000 (13:13 +0100)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
sysdeps/gnu/unwind-resume.c

index b5fb4df6f4a391051da0c9b61876b30e9cb2aef4..17506d598409ac8f17e92476a0673534f4680f51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-11  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
+       and error message.
+
 2018-01-11  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #22636]
index 94704c9a2b6c77b933ead68cb9e3acf4a8734abd..7f9a1bf2c745c8adf2973a24d22aeff398068496 100644 (file)
@@ -35,13 +35,17 @@ __libgcc_s_init (void)
   void *resume, *personality;
   void *handle;
 
-  handle = __libc_dlopen (LIBGCC_S_SO);
+  /* Use RTLD_NOW here for consistency with pthread_cancel_init.
+     RTLD_NOW will rarely make a difference here because unwinding is
+     already in progress, so libgcc_s.so has already been loaded if
+     its unwinder is used.  */
+  handle = __libc_dlopen_mode (LIBGCC_S_SO, RTLD_NOW | __RTLD_DLOPEN);
 
   if (handle == NULL
       || (resume = __libc_dlsym (handle, "_Unwind_Resume")) == NULL
       || (personality = __libc_dlsym (handle, "__gcc_personality_v0")) == NULL)
     __libc_fatal (LIBGCC_S_SO
-                  " must be installed for pthread_cancel to work\n");
+                  " must be installed for unwinding to work\n");
 
 #ifdef PTR_MANGLE
   PTR_MANGLE (resume);
This page took 0.087846 seconds and 5 git commands to generate.