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
This commit is contained in:
Norman Feske 2019-08-22 10:50:01 +02:00 committed by Christian Helmuth
parent 4c14af4d8a
commit a98f78afd9

View File

@ -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