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


> --- 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?


Thanks,
Roland


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