Bug 157946

Summary: gdb doesn't relocate symbols of PIE executables
Product: [openSUSE] SUSE Linux 10.1 Reporter: Jan Blunck <jblunck>
Component: DevelopmentAssignee: Andreas Schwab <schwab>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: pth
Version: Beta 8   
Target Milestone: ---   
Hardware: i386   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jan Blunck 2006-03-14 15:01:40 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:~>
Comment 1 Andreas Schwab 2006-03-14 15:25:14 UTC

*** This bug has been marked as a duplicate of 139573 ***