On 01/15/2016 09:53 AM, Peter Maydell wrote: >> @@ -58,7 +58,7 @@ static struct pathelem *new_entry(const char *root, >> #if defined(DT_DIR) && defined(DT_UNKNOWN) && defined(DT_LNK) >> # define dirent_type(dirent) ((dirent)->d_type) >> # define is_dir_maybe(type) \ >> - ((type) == DT_DIR || (type) == DT_UNKNOWN || (type) == DT_LNK) >> + ((type) == DT_DIR || (type) == DT_UNKNOWN) >> #else >> # define dirent_type(dirent) (1) >> # define is_dir_maybe(type) (type) >> -- >> 2.5.0 > > This change would be essentially reverting commit 338d80dd353c50b63, > which specifically added support for symbolic links in the directory > structure. So if we applied it we'd be regressing on the problem > that that change was meant to fix. > > Richard, git says that commit was one of yours :-)
Because gcc and qemu have different names for their sysroot trees, and in my disks, gcc is the "master". So I normally have .../qemu/run/qemu-alpha -> .../gcc/run-cross/alphaev67-linux/sys-root .../qemu/run/qemu-arm -> .../gcc/run-cross/arm-linux-gnueabi/sys-root .../qemu/run/qemu-sparc -> .../gcc/run-cross/sparc64-linux/sys-root .../qemu/run/qemu-sparc64 -> .../gcc/run-cross/sparc64-linux/sys-root The DT_LNK is required for traversing even the first link. r~