Skip to content

Commit

Permalink
in android 7 and above there is a EACCESS error on readding root dir /
Browse files Browse the repository at this point in the history
this causes error in ld.gold but not in ld.
this patch makes ld.gold ignore that error to match ld behaviour.
  • Loading branch information
its-pointless authored and fornwall committed Sep 10, 2018
1 parent 6f4fedc commit bf54062
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/binutils/dirsearch.cc.patch
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit bf54062

Please sign in to comment.