Skip to contentSkip to conversation

do not strip libthread_db.so

PATCH New Mike Frysinger 3 participants 3 messages Nov 20, 2010 – Nov 24, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 do not strip libthread_db.so

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.

---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Makefile +2 -1
index 2e4ccba..e351e79 100644
@@ -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
 
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 do not strip libthread_db.so

Quoted 5 lines · On Sat, 20 Nov 2010 05:29:28 -0500 Mike Frysinger <[email protected]> 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.

Peter, this should go in 2010.11.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 do not strip libthread_db.so

In reply to Mike Frysinger
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Mike" == Mike Frysinger <[email protected]> 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

Signature · 1 line
Bye, Peter Korsgaard