Hi,

Few people complained (hi landry@!) that stripped binaries are slightly
larger now than they used to be when debug packages are enabled.

My investigations show that this is because objcopy --strip-debug is
less efficient than plain strip(1) which is what we use for non-debug
packages.

Reintroducing strip(1) does not affect current debug packages behaviour
in my experience. The link to the debug symbols is still there and
egdb(1) still loads it automatically and displays all the debug info.

OK?

Paul

Index: bin/build-debug-info
===================================================================
RCS file: /cvs/ports/infrastructure/bin/build-debug-info,v
retrieving revision 1.22
diff -u -p -u -p -r1.22 build-debug-info
--- bin/build-debug-info        19 Nov 2019 15:49:30 -0000      1.22
+++ bin/build-debug-info        25 Nov 2019 14:06:34 -0000
@@ -263,7 +263,7 @@ print {$self->{mk}} << 'EOPREAMBLE';
 OBJCOPY_RULE = ${INSTALL_DATA_DIR} ${@D} && \
     echo "> Copy debug info from $? to $@" && \
     objcopy --only-keep-debug $? $@ && \
-    objcopy --strip-debug $? && \
+    strip $? && \
     objcopy --add-gnu-debuglink=$@ $? && \
     touch $@
 

Reply via email to