All of lore.kernel.org
 help / color / mirror / Atom feed
* dynamic libraries
@ 2005-02-23 21:28 Andrei Petrov
  2005-02-23 23:08 ` Keir Fraser
  0 siblings, 1 reply; 15+ messages in thread
From: Andrei Petrov @ 2005-02-23 21:28 UTC (permalink / raw)
  To: xen-devel


While looking at tools build I noticed that same object files are used to build both
static and dynamic libraries (libxc, libxutil). It's normally required to compile in
PIC form for dynamic ones. At first I thought that no applcations use those libraries,
but no, they are used by all of them. Surprisingly it doens't cause any problems (at
least nobody's complaining, ld.so even).

Well, anyway it doesn't look correct for me, I'd like to come up with a patch
but it'll take some time, so I wouldn't mind if some Makefile savvy beat me on it.
Short term solution would be always set -fPIC.

--Andrei Petrov


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: dynamic libraries
@ 2005-02-24  0:20 Charles Coffing
  0 siblings, 0 replies; 15+ messages in thread
From: Charles Coffing @ 2005-02-24  0:20 UTC (permalink / raw)
  To: doogie, smohekey; +Cc: xen-devel

(gdb) help shared
Load shared object library symbols for files matching REGEXP.

In my experience, if the program does a dlopen() after gdb is already
attached, gdb won't see the symbols.  Just type "sha" and it will load
them.

HTH


>>>Adam Heath <doogie@brainfood.com> 02/23/05 5:12 pm >>> 
On Wed, 23 Feb 2005, smohekey@insightful.co.nz wrote: 
 
> 
>On Wed, Feb 23, 2005 at 06:00:56PM -0600, Adam Heath wrote: 
>> 
>>You can't debug dynamic libraries.  gdb can't load their symbols. 
>> 
> 
>Are you sure about this? I've been debugging dynamic libraries for some

>time now. Best results are seen with no optimisation and -ggdb to
enable all 
>debugging symbols. 
 
There's something that can't work with dynamic libs. 
 
 
------------------------------------------------------- 
SF email is sponsored by - The IT Product Guide 
Read honest & candid reviews on hundreds of IT Products from real users.

Discover which products truly live up to the hype. Start reading now. 
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click 
 
Xen-devel mailing list 
Xen-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/xen-devel 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-02-24  7:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 21:28 dynamic libraries Andrei Petrov
2005-02-23 23:08 ` Keir Fraser
2005-02-23 23:14   ` Adam Heath
2005-02-23 23:19     ` Keir Fraser
2005-02-23 23:26       ` Adam Heath
2005-02-23 23:43         ` Keir Fraser
2005-02-24  0:00           ` Adam Heath
2005-02-24  0:09             ` smohekey
2005-02-24  0:12               ` Adam Heath
2005-02-24  1:40           ` [Xen-devel][PATCH] " Vincent Hanquez
2005-02-24  7:33             ` Keir Fraser
2005-02-24  0:23       ` Andrei Petrov
2005-02-24  0:46       ` Jacob Gorm Hansen
2005-02-24  0:18     ` Andrei Petrov
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24  0:20 Charles Coffing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.