Re: [PATCH v2] elf: Add _dl_find_object function

2021-11-26 Thread Florian Weimer via Gcc-patches
* Jakub Jelinek: > On Thu, Nov 25, 2021 at 09:35:14PM +0100, Florian Weimer wrote: >> +struct dl_find_object >> +{ >> + unsigned long long int dlfo_flags;/* Currently 0. */ >> + void *dlfo_map_start; /* Beginning of mapping containing >> address. */ >> + void *dlfo_map_end

Re: [PATCH v2] elf: Add _dl_find_object function

2021-11-26 Thread Jakub Jelinek via Gcc-patches
On Thu, Nov 25, 2021 at 09:35:14PM +0100, Florian Weimer wrote: > +struct dl_find_object > +{ > + unsigned long long int dlfo_flags; /* Currently 0. */ > + void *dlfo_map_start; /* Beginning of mapping containing > address. */ > + void *dlfo_map_end;/* End of mappi

[PATCH v2] elf: Add _dl_find_object function

2021-11-25 Thread Florian Weimer via Gcc-patches
I have reword the previous patch to make the interface more generally useful. Since there are now four words in the core arrays, I did away with the separate base address array. (We can bring it back in the future if necessary.) I fixed a bug in the handling of proxy map (by not copying proxy ma