Merge common parts of sha1sum and md5sum, which is everything except the
algorithms.
Move algorithms to hash_fd and make them available via a common
function.
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in
index b672f08..c7ba57e 100644
--- a/coreutils/Makefile.in
+++ b/coreutils/Makefile.in
@@ -52,7 +52,7 @@
 COREUTILS-$(CONFIG_LN)		+= ln.o
 COREUTILS-$(CONFIG_LOGNAME)		+= logname.o
 COREUTILS-$(CONFIG_LS)		+= ls.o
-COREUTILS-$(CONFIG_MD5SUM)	+= md5sum.o
+COREUTILS-$(CONFIG_MD5SUM)	+= md5_sha1_sum.o
 COREUTILS-$(CONFIG_MKDIR)	+= mkdir.o
 COREUTILS-$(CONFIG_MKFIFO)	+= mkfifo.o
 COREUTILS-$(CONFIG_MKNOD)	+= mknod.o
@@ -63,7 +63,7 @@
 COREUTILS-$(CONFIG_REALPATH)		+= realpath.o
 COREUTILS-$(CONFIG_RM)		+= rm.o
 COREUTILS-$(CONFIG_RMDIR)	+= rmdir.o
-COREUTILS-$(CONFIG_SHA1SUM)	+= sha1sum.o
+COREUTILS-$(CONFIG_SHA1SUM)	+= md5_sha1_sum.o
 COREUTILS-$(CONFIG_SLEEP)		+= sleep.o
 COREUTILS-$(CONFIG_SORT)	+= sort.o
 COREUTILS-$(CONFIG_STTY)		+= stty.o