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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to