[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20815] throw errors for invalid load segment
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/20815] throw errors for invalid load segment |
Date: |
Fri, 18 Nov 2016 11:02:14 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20815
--- Comment #15 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 9646
--> https://sourceware.org/bugzilla/attachment.cgi?id=9646&action=edit
Proposed patch
Hi Ma,
OK - now we are getting somewhere. So - I have uploaded a patch to readelf
which will allow it to detect and report invalid PT_PHDR segments. With this
we can now detect broken binaries.
The next step is to reproduce the problem locally so that it can be
investigated. This is where I am currently having problems. I tried compiling
the test.c file as you suggested (gcc -c test.c; ld test.o -T pad.ld) but this
produced an output file like the one I uploaded - ie without a PT_PHDR segment.
So there must be something different about our build environments. I am going
to assume that the version of gcc being used is irrelevant, so it must be the
linker. I have been using a version built from the latest development sources
and configured for an x86_64-pc-linux-gnu target. What are you using ?
Cheers
Nick
--
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, 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, 2016/11/18
- [Bug ld/20815] throw errors for invalid load segment,
nickc at redhat dot com <=
- [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
- [Bug ld/20815] throw errors for invalid load segment, cvs-commit at gcc dot gnu.org, 2016/11/28