Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so split debug info for rtld
details: https://anonhg.NetBSD.org/src/rev/799815c6e817
branches: trunk
changeset: 785904:799815c6e817
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 05 20:16:40 2013 +0000
description:
split debug info for rtld
diffstat:
libexec/ld.elf_so/Makefile | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r f09f53d1b20d -r 799815c6e817 libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile Fri Apr 05 20:15:42 2013 +0000
+++ b/libexec/ld.elf_so/Makefile Fri Apr 05 20:16:40 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.114 2012/08/23 21:21:15 joerg Exp $
+# $NetBSD: Makefile,v 1.115 2013/04/05 20:16:40 christos Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@@ -129,9 +129,19 @@
.PATH: $M
+
${PROG}: ${OBJS} ${DPADD}
${_MKMSG_LINK} ${PROG}
${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD}
+.if ${MKDEBUG} != "no"
+ ( ${OBJCOPY} --only-keep-debug ${.TARGET} ${.TARGET}.debug \
+ && ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \
+ --add-gnu-debuglink=${.TARGET}.debug ${.TARGET} \
+ ) || (rm -f ${.TARGET}.debug; false)
+
+_PROGDEBUG.${PROG} := ${PROG}.debug
+.endif
+
.if ${SHLINKINSTALLDIR} != "/usr/libexec"
SYMLINKS+= ${SHLINKINSTALLDIR}/${PROG} /usr/libexec/${PROG}
Home |
Main Index |
Thread Index |
Old Index