From bf540620be3c265940fb71de4a9e658cb76a895b Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 3 Jul 2018 10:44:38 +1000 Subject: [PATCH] in android 7 and above there is a EACCESS error on readding root dir / this causes error in ld.gold but not in ld. this patch makes ld.gold ignore that error to match ld behaviour. --- packages/binutils/dirsearch.cc.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/binutils/dirsearch.cc.patch diff --git a/packages/binutils/dirsearch.cc.patch b/packages/binutils/dirsearch.cc.patch new file mode 100644 index 000000000..3f9a59178 --- /dev/null +++ b/packages/binutils/dirsearch.cc.patch @@ -0,0 +1,11 @@ +--- ../cache/binutils-2.30/gold/dirsearch.cc 2018-01-13 13:31:16.000000000 +0000 ++++ ./gold/dirsearch.cc 2018-07-04 01:41:01.695893401 +0000 +@@ -69,7 +69,7 @@ + { + // We ignore directories which do not exist or are actually file + // names. +- if (errno != ENOENT && errno != ENOTDIR) ++ if (errno != ENOENT && errno != ENOTDIR && errno != EACCES ) + gold::gold_error(_("%s: can not read directory: %s"), + this->dirname_, strerror(errno)); + return;