Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] do not strip libthread_db.so
@ 2010-11-20 10:29 Mike Frysinger
  2010-11-23 19:32 ` Thomas Petazzoni
  2010-11-24 21:24 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-11-20 10:29 UTC (permalink / raw)
  To: buildroot

For proper threading debug support, the libthread_db.so library cannot
be stripped on the target.  This is because the target gdbserver will
also load up this library at runtime and poke around its symbols.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 2e4ccba..e351e79 100644
--- a/Makefile
+++ b/Makefile
@@ -424,7 +424,8 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
 	rm -rf $(TARGET_DIR)/usr/share/gtk-doc
 	rmdir $(TARGET_DIR)/usr/share 2>/dev/null || :
 endif
-	find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
+	find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db.so*' | \
+		xargs $(STRIPCMD) 2>/dev/null || true
 	find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
 		xargs -r $(STRIPCMD) -R .comment -R .note -g --strip-unneeded
 
-- 
1.7.3.2

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

* [Buildroot] [PATCH] do not strip libthread_db.so
  2010-11-20 10:29 [Buildroot] [PATCH] do not strip libthread_db.so Mike Frysinger
@ 2010-11-23 19:32 ` Thomas Petazzoni
  2010-11-24 21:24 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2010-11-23 19:32 UTC (permalink / raw)
  To: buildroot

On Sat, 20 Nov 2010 05:29:28 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> For proper threading debug support, the libthread_db.so library cannot
> be stripped on the target.  This is because the target gdbserver will
> also load up this library at runtime and poke around its symbols.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Peter, this should go in 2010.11.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH] do not strip libthread_db.so
  2010-11-20 10:29 [Buildroot] [PATCH] do not strip libthread_db.so Mike Frysinger
  2010-11-23 19:32 ` Thomas Petazzoni
@ 2010-11-24 21:24 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2010-11-24 21:24 UTC (permalink / raw)
  To: buildroot

>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

 Mike> For proper threading debug support, the libthread_db.so library cannot
 Mike> be stripped on the target.  This is because the target gdbserver will
 Mike> also load up this library at runtime and poke around its symbols.

Committed, thanks

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2010-11-24 21:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20 10:29 [Buildroot] [PATCH] do not strip libthread_db.so Mike Frysinger
2010-11-23 19:32 ` Thomas Petazzoni
2010-11-24 21:24 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox