This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] elf: Use nocancel pread64() instead of lseek()+read()
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Yann Droneaud <ydroneaud at opteya dot com>
- Cc: "libc-alpha\@sourceware.org" <libc-alpha at sourceware dot org>, Leandro Pereira <Leandro dot Pereira at microsoft dot com>
- Date: Thu, 03 Oct 2019 19:59:44 +0200
- Subject: Re: [PATCH 2/2] elf: Use nocancel pread64() instead of lseek()+read()
- References: <MWHPR2101MB073287753F9E8D211AF49DD3E8DA0@MWHPR2101MB0732.namprd21.prod.outlook.com> <ef6eb5407fef7246cf8bc2627c0541ca8d86f94e.camel@opteya.com>
On Okt 03 2019, Yann Droneaud <ydroneaud@opteya.com> wrote:
> Anyway I'm quite surprised ld.so is reading twice 68 bytes at the same
> 792 offset. Moreover, the first read already brought 28 bytes out of
> 68.
That only happens if you have a note segment that does not fit in the
initial file buffer. That is rather unusual.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."