[PATCH] elf: fix pldd on targets that map objects above 2^63 [BZ #34641]

Stian Halseth stian@itx.no
Thu Sep 17 08:46:43 GMT 2026


Hi Andreas,

On Thu, 2026-09-17 at 10:20 +0200, Andreas Schwab wrote:
> On Sep 17 2026, Stian Halseth wrote:
> 
> > On sparc64 glibc's lseek returns a truncated value for these high
> > offsets (0x200b38 for 0xfff8000100200b38), with errno unset and the
> > seek itself working. It doesn't affect this patch, since the return
> > is
> > only compared against (off_t) -1, but maybe a separate lseek issue?
> 
> What does strace say?
> 
strace shows glibc's lseek going through _llseek, and a direct
syscall(SYS_lseek) returns the full value:

  _llseek(3, -2251795516617928, [0], SEEK_SET) = 2100024
  lseek(3, -2251795516617928, SEEK_SET) = 18444492278192933688

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260917/9ab61a9a/attachment.sig>


More information about the Libc-alpha mailing list