This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: BZ #14683: Static dlopen abort on $ORIGIN


On Thu, Oct 11, 2012 at 4:44 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> --- a/elf/dl-open.c
>> +++ b/elf/dl-open.c
>> @@ -206,6 +206,14 @@ dl_open_worker (void *a)
>>             goto found_caller;
>>           }
>>
>> +#ifndef SHARED
>> +       /* In statically linked apps there might be only vDSO.  */
>> +       if (call_map
>> +           && (caller_dlopen < (const void *) call_map->l_map_start
>> +               || caller_dlopen >= (const void *) call_map->l_map_end))
>> +         call_map = NULL;
>> +#endif
>> +
>>      found_caller:
>>        if (args->nsid == __LM_ID_CALLER)
>>       {
>
> It should just omit the initial setting of CALL_MAP for !SHARED,
> shouldn't it?
>

What should  GL(dl_ns)[LM_ID_BASE]._ns_loaded be in
static executales?

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]