From a98f78afd9195ca19707571bb16c542407512670 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 22 Aug 2019 10:50:01 +0200 Subject: [PATCH] ldso: avoid 'dd' output in build log This patch is a follow-up commit for "ld: load dynamic linker at static address on Linux". It suppresses the stderr output of 'dd' when marking the ELF binary as executable. Issue #3479 --- repos/base/lib/mk/ld-platform.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repos/base/lib/mk/ld-platform.inc b/repos/base/lib/mk/ld-platform.inc index db3a04e49..dbbf38263 100644 --- a/repos/base/lib/mk/ld-platform.inc +++ b/repos/base/lib/mk/ld-platform.inc @@ -38,12 +38,14 @@ LD_OPT += -T$(DIR)/linux-32.ld endif # -# set dynamic linker ELF type to executable +# Set dynamic linker ELF type to executable # ifeq ($(called_from_lib_mk),yes) $(LIB).lib.so.stripped: postprocess.tag postprocess.tag: $(LIB).lib.so - $(VERBOSE)printf "\x02" | dd of=$(LIB).lib.so bs=1 seek=16 count=1 conv=notrunc + $(VERBOSE)printf "\x02" |\ + dd of=$(LIB).lib.so bs=1 seek=16 count=1 conv=notrunc \ + 2> /dev/null endif else