[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20815] throw errors for invalid load segment
From: |
ma.jiang at zte dot com.cn |
Subject: |
[Bug ld/20815] throw errors for invalid load segment |
Date: |
Fri, 18 Nov 2016 10:23:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20815
--- Comment #14 from ma.jiang at zte dot com.cn ---
(In reply to Nick Clifton from comment #13)
Hi Nick,
now that the generated elf have a PT_PHDR segment, it must load the program
header into memory, as the elf standard said clearly "Moreover, it may occur
*ONLY IF* the program header table is part of the *MEMORY IMAGE* of the
program". The program header table is not in any load segment of the invalid
elf, so it is clear that the program header table is not part of the memory
image of the elf file.
I did not understand all the pricinples behind the elf standard.But,it seems
to me "the existence of PT_PHDR is to tell others that you can find the program
header table in the memory at the VMA specified by the PHDR segment". If it's
not the case, I can not understand why we need a PT_PHDR segment. Anyway, the
program header table can be read out from the elf file directly(with the guide
of e_phoff).
> OK - well if we can will. Provided that we do not break anything else of
> course.
Thanks,I believe we can make it.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/20815] throw errors for invalid load segment, (continued)
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/14
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/16
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/16
- [Bug ld/20815] throw errors for invalid load segment, hjl.tools at gmail dot com, 2016/11/16
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/16
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/16
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/17
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/17
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/17
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/18
- [Bug ld/20815] throw errors for invalid load segment,
ma.jiang at zte dot com.cn <=
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/18
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/18
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/18
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/21
- [Bug ld/20815] throw errors for invalid load segment, cvs-commit at gcc dot gnu.org, 2016/11/23
- [Bug ld/20815] throw errors for invalid load segment, nickc at redhat dot com, 2016/11/23
- [Bug ld/20815] throw errors for invalid load segment, cvs-commit at gcc dot gnu.org, 2016/11/23
- [Bug ld/20815] throw errors for invalid load segment, ma.jiang at zte dot com.cn, 2016/11/24
- [Bug ld/20815] throw errors for invalid load segment, cvs-commit at gcc dot gnu.org, 2016/11/27
- [Bug ld/20815] throw errors for invalid load segment, cvs-commit at gcc dot gnu.org, 2016/11/28