* [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG
@ 2015-01-01 10:16 Baruch Siach
2015-01-01 10:29 ` Thomas Petazzoni
2015-01-07 22:00 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Baruch Siach @ 2015-01-01 10:16 UTC (permalink / raw)
To: buildroot
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/glibc/glibc.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index 65f4ed3b0d97..0a37bb361a07 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -47,6 +47,10 @@ else ifeq ($(BR2_MIPS_OABI32),y)
GLIBC_EXTRA_CFLAGS += -mabi=32
endif
+ifeq ($(BR2_ENABLE_DEBUG),y)
+GLIBC_EXTRA_CFLAGS += -g
+endif
+
# The stubs.h header is not installed by install-headers, but is
# needed for the gcc build. An empty stubs.h will work, as explained
# in http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html. The same trick
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG
2015-01-01 10:16 [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG Baruch Siach
@ 2015-01-01 10:29 ` Thomas Petazzoni
2015-01-01 10:36 ` Baruch Siach
2015-01-07 22:00 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-01-01 10:29 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Thu, 1 Jan 2015 12:16:43 +0200, Baruch Siach wrote:
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/glibc/glibc.mk | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks!
Do you know if there's an easy way of checking if ELF binaries have
debugging symbols? If so, we could add a check to verify that all ELF
binaries have debugging symbols when BR2_ENABLE_DEBUG=y, and add this
check in the autobuilders.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG
2015-01-01 10:29 ` Thomas Petazzoni
@ 2015-01-01 10:36 ` Baruch Siach
0 siblings, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2015-01-01 10:36 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Thu, Jan 01, 2015 at 11:29:40AM +0100, Thomas Petazzoni wrote:
> On Thu, 1 Jan 2015 12:16:43 +0200, Baruch Siach wrote:
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> > package/glibc/glibc.mk | 4 ++++
> > 1 file changed, 4 insertions(+)
>
> Thanks!
>
> Do you know if there's an easy way of checking if ELF binaries have
> debugging symbols? If so, we could add a check to verify that all ELF
> binaries have debugging symbols when BR2_ENABLE_DEBUG=y, and add this
> check in the autobuilders.
I guess looking for '.debug_info' in the output of 'objdump -h' or 'readelf
-S' should be enough.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG
2015-01-01 10:16 [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG Baruch Siach
2015-01-01 10:29 ` Thomas Petazzoni
@ 2015-01-07 22:00 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-01-07 22:00 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Thu, 1 Jan 2015 12:16:43 +0200, Baruch Siach wrote:
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/glibc/glibc.mk | 4 ++++
> 1 file changed, 4 insertions(+)
Applied, thanks!
Maybe we should also take care of the same thing in uClibc? musl is OK,
we use $(TARGET_CFLAGS).
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-07 22:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-01 10:16 [Buildroot] [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG Baruch Siach
2015-01-01 10:29 ` Thomas Petazzoni
2015-01-01 10:36 ` Baruch Siach
2015-01-07 22:00 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox