[Bug ld/2750] New: ld has problem with -shared, and GDB, SUN solaris 10 X86 (amd)

2006-06-09 Thread tan at absolute-eda dot com
the program I have work fine in older version of gcc,ld and GDB.  However, with
gdb 3.3+, it has the folowing behavior:

if I link the exec called medusa, which has a capability to dynamically link in
a library :
medusa --lib=my.so

where code in my.so calls some functions in medusa.

if I link medusa with this ld, I can run GDB on medusa, but when I run 
medusa --lib=libpli.so,

it complains
"ld.so.1: medusa: fatal: relocation error: file
./libpli.so: symbol ttf_io_printf: referenced symbol not found"

If I link medusa using th SUN packaged ld, then medusa --lib=libpli.so work just
fine, but I can not run GDB, the error is
  "DW_FORM_strp point outside of ."

any suggestion ?

-- 
   Summary: ld has problem with -shared, and GDB, SUN solaris 10 X86
(amd)
   Product: binutils
   Version: 2.16
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: tan at absolute-eda dot com
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=2750

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/2750] ld has problem with -shared, and GDB, SUN solaris 10 X86 (amd)

2006-06-27 Thread tan at absolute-eda dot com

--- Additional Comments From tan at absolute-eda dot com  2006-06-27 23:34 
---

I have been playing with binutil 2.16.  I will give 2.17 a try.



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2750

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/2750] ld has problem with -shared, and GDB, SUN solaris 10 X86 (amd)

2006-06-29 Thread tan at absolute-eda dot com

--- Additional Comments From tan at absolute-eda dot com  2006-06-29 22:47 
---
no luck with binutil 2.17.  
Gcc 4.1.1 + binutil ==> can not dynamic link with .so
==> GDB runs fine, except it cannot break in C++ routine is 
.h
==> dbx works fine

Gcc-3.4.3 (come with the box) + binutil 1.17 ==> same

Gcc-3.4.3 + sun's ld ==> dynmaic link works
 ==> GDB error with DW_FORM message
 ==> dbx runs fine.

So, eithe ld of binutil has bug, or gcc has bugs, or GDB has bug on SUN Ulta 20
(x86) solaris.  All they all have bugs.

The kicker here is that we have problem creating a small code to show the
problem.  If you are in Santa Clara you are welcome to drop by to take a look. 
If you have some debugging aids, I can run them.

thanks

tan


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2750

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils