Bugzilla – Bug 157946
gdb doesn't relocate symbols of PIE executables
Last modified: 2006-03-14 15:25:14 UTC
This is a bug found in stable. jblunck@hasse:~> gdb /usr/bin/host GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) b main Breakpoint 1 at 0x3a00: file host.c, line 714. (gdb) run Starting program: /usr/bin/host Warning: Cannot insert breakpoint 1. Error accessing memory address 0x3a00: Input/output error. (gdb) quit The program is running. Exit anyway? (y or n) y jblunck@hasse:~> nm /usr/lib/debug/usr/bin/host.debug | grep main U __libc_start_main@@GLIBC_2.0 00003a00 T main 00005c70 T set_search_domain jblunck@hasse:~>
*** This bug has been marked as a duplicate of 139573 ***