[PATCH v3 19/37] dlfcn: Failures after dlmopen should not terminate process [BZ #24772]

Florian Weimer fweimer@redhat.com
Sat Mar 27 16:57:47 GMT 2021


* Adhemerval Zanella:

>> diff --git a/elf/dl-error-skeleton.c b/elf/dl-error-skeleton.c
>> index 2fd62777cf..b699936c6e 100644
>> --- a/elf/dl-error-skeleton.c
>> +++ b/elf/dl-error-skeleton.c
>> @@ -248,4 +248,16 @@ _dl_receive_error (receiver_fct fct, void (*operate) (void *), void *args)
>>    catch_hook = old_catch;
>>    receiver = old_receiver;
>>  }
>> +
>> +/* Forwarder used for initializing GLRO (_dl_catch_error).  */
>> +int
>> +_rtld_catch_error (const char **objname, const char **errstring,
>> +		   bool *mallocedp, void (*operate) (void *),
>> +		   void *args)
>> +{
>> +  /* The reference to _dl_catch_error will eventually be relocated to
>> +     point to the implementation in libc.so.  */
>> +  return _dl_catch_error (objname, errstring, mallocedp, operate, args);
>> +}
>> +
>>  #endif /* DL_ERROR_BOOTSTRAP */
>
> Ok, but why change the usual prepend string to 'rtld'?

_dl_catch_error is already taken.

Thanks,
Florian



More information about the Libc-alpha mailing list