bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25237] Strip leaves file offset of empty PT_LOAD segment p


From: amodra at gmail dot com
Subject: [Bug binutils/25237] Strip leaves file offset of empty PT_LOAD segment point past end of file
Date: Mon, 02 Dec 2019 01:33:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25237

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
(In reply to Balint Reczey from comment #2)
> Did I miss something?

You did.  By subtracting off_adjust from the value written to p_offset you
potentially have p_offset mod page_size != p_vaddr mod page_size.

This will fail the glibc test in elf/dl-load.c resulting in "ELF load command
address/offset not properly aligned"

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]