There are three problems with std.loader:
1. It's not compiled into libphobos.a
2. When compiled-in, gcc complains about a duplicate RTLD_NOW symbol, the second instance exists in std.c.linux.linux.
3. When the conflicting symbols are resolved (e.g. by replacing the RTLD_NOW usage in std.loader to its numeric value, 0x00002), lib loading doesn't work in linux because of the line 339 in loader.d:
ExeModuleInfo mi = s_modules[moduleName];
it should be changed to:
ExeModuleInfo* mi_p = moduleName in s_modules;
ExeModuleInfo mi = mi_p is null ? null : *mi_p;