undefined symbol: __dso_handle

2005-03-29 Thread grégory sainton
Hi, I am trying to built a shared library. During the compilation, everything is fine. But the execution of the program give : ./tutorial.exe: symbol lookup error: /usr/lib/libthreadcpp.so: undefined symbol: __dso_handle I heared that is could come from the version of binutils i am using.

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-29 Thread Nick Clifton
Hi Vladimir, Results of testting: And then configure part work fine at FreeBSD but binutils/config.h not #included in addr2line.c Hmm, but it does #include "bucomm.h" which then #include's "config.h". It turns out however that it incldues it too late (ie after "bfd.h"). So please try the attache

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling

2005-03-29 Thread Vladimir Merzliakov
And then configure part work fine at FreeBSD but binutils/config.h not #included in addr2line.c Hmm, but it does #include "bucomm.h" which then #include's "config.h". It turns out however that it incldues it too late (ie after "bfd.h"). So please try the attached patch (in addition to my previous p

Re: Unix "time" returns 43.833s. "gprof" returns 438 seconds.

2005-03-29 Thread Nick Clifton
Hi Jason, Unix "time" returns 43.833s. gprof returns 438 seconds. Either I'm going crazy or gprof is reporting a 10x increase? What could be causing this? A bug of some kind. Presumably in gprof. user0m43.646s Each sample counts as 0.01 seconds. % cumulative self self t

Re: [Bug ld/805] New: linking error: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output

2005-03-29 Thread Nick Clifton
Hi dorchen1611, On creating a .lx File for hms-8300 microprocessor (Lego robot) following linker error occurs: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output. Please could you supply a *small* self-contained test case that reproduces this problems and instructions on how to run th

Re: Fix typo in dwarf2.c and remove some dead code

2005-03-29 Thread Nick Clifton
Hi Fred, 2005-03-24 Fred Fish <[EMAIL PROTECTED]> * dwarf2.c (struct comp_unit): Fix typo. (scan_unit_for_functions): Remove unused local variable "name" and dead code that set it. Approved - please apply. Cheers Nick ___ bug-

[Bug ld/805] linking error: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output

2005-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2005-03-29 17:48 --- Subject: Re: New: linking error: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output Hi dorchen1611, > On creating a .lx File for hms-8300 microprocessor (Lego robot) following > linker > error oc

non-const variable from shared library gets placed in read-only section

2005-03-29 Thread Norton Allen
Problem: non-const variable exported from shared library gets placed in read-only section. Environment: cygwin 1.3.15 gcc 3.3.1, 3.3.3 and 3.4.1 ld 2.15.94 libxml2-2.6.18 scrollkeeper-0.3.14 Details: The variable xmlFree is defined in libxml2 and referenced by a program in the scr