1 |
Hi, |
2 |
|
3 |
I'm running a gentoo-hardened (amd64) system compiled with PIE |
4 |
support. Now I want to debug those PIE executables, any recommendations |
5 |
how to debug PIE executables ? |
6 |
|
7 |
I tried gdb-6.8 + patches from Fedora GNU/Linux 9 beta and tried to |
8 |
build it. I got that built successfully, and I'm also able to debug PIE |
9 |
applications successfully. But the issue, I'm facing is that I'm not |
10 |
able to build the gdb-6.8+patches combination using an ebuild |
11 |
successfully. The resultant gdb from ebuild, comes out to be not PIE |
12 |
debugging capable, whereas gdb built from the same flags using |
13 |
"./configure && make" works fine. |
14 |
|
15 |
Following is the URL of the bzip2-ed tarball containg ebuild, and |
16 |
patches tarball: |
17 |
|
18 |
http://wahjava.googlepages.com/gdb-6.8-ebuild.tar.bz2 |
19 |
md5sum: 18903f0f0c0507d580b6faa2f2667b9c |
20 |
size: 121686 |
21 |
|
22 |
To build the gdb-6.8 without going through ebuild extract |
23 |
gdb-6.8.tar.bz2, and apply all patches using 'patch -p1' in root of |
24 |
gdb-6.8 directory. |
25 |
|
26 |
Is there any error in my ebuild ? or am I missing anything ? Or any |
27 |
other recommended way to debug PIE executables in Gentoo Hardened ? |
28 |
|
29 |
TIA |
30 |
-- |
31 |
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ |
32 |
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- |