[klibc] question about KLIBCSHAREDFLAGS

eno coffe92 at gmail.com
Fri Dec 21 08:13:47 PST 2018


Hi Peter,

Thank you for the answer!

чт, 20 дек. 2018 г. в 00:02, H. Peter Anvin <hpa at zytor.com>:
>
> On 11/23/18 8:09 AM, eno wrote:
> > Dear experts,
> >
> > I'm new in klibc and currently studying the source codes.
> > I'm looking at the codes in usr/klibc/arch and can't figure out why
> > does, e.g. in x86_64, the text segment offset differ from system v
> > x86_64 abi (which is 4 Mb)? How does this value was calculated?
> >
> > Thanks in advance!
> > Nikita.
>
> It is set so that klibc.so is loaded at an address where it doesn't
> conflict with the load address of an executable, but is still within
> range of an intramodule control transfer (which is architecture-dependent.)
>
>         -hpa
>



More information about the klibc mailing list