scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 --- binutils/ld/ldmain.c
2 +++ binutils/ld/ldmain.c
3 @@ -273,2 +273,5 @@ main (int argc, char **argv)
4 link_info.emit_hash = TRUE;
6 + link_info.emit_gnu_hash = TRUE;
8 link_info.callbacks = &link_callbacks;