Forward-ported from cl/51332316 (from cl/41538-p2).
(ppluzhnikov, google-local)
+elf/rtld.c
+ For b/4268901, disable "/etc/ld.so.preload", but allow other builds to
+ re-enable it by setting -DENABLE_ETC_LD_SO_PRELOAD in CFLAGS.
+ Forward-ported from cl/51332859 (from cl/51576-p2 and cl/51620-p2).
+ (ppluzhnikov, google-local)
+
HP_TIMING_ACCUM_NT (load_time, diff);
}
+
+#if ENABLE_ETC_LD_SO_PRELOAD /* Google-local: we don't want
+ /etc/ld.so.preload for GRTE. */
+
/* There usually is no ld.so.preload file, it should only be used
for emergencies and testing. So the open call etc should usually
fail. Using access() on a non-existing file is faster than using
}
}
+#endif /* end "/etc/ld.so.preload" disable. */
+
if (__builtin_expect (*first_preload != NULL, 0))
{
/* Set up PRELOADS with a vector of the preloaded libraries. */