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 @@ -296,6 +296,7 @@ main (int argc, char **argv)
5 link_info.allow_undefined_version = TRUE;
6 link_info.keep_memory = TRUE;
7 + link_info.new_dtags = TRUE;
8 link_info.combreloc = TRUE;
9 link_info.strip_discarded = TRUE;
10 link_info.callbacks = &link_callbacks;