This review has been split off from review D44053 as requested by kib@ to allow the rtld changes to be committed and MFCed before these ldconfig changes.
The ldconfig command will create little-endian hints files unless invoked with the new -B option, which will enforce big-endian mode (and will check it when reading or merging). It is expected, that new releases will use little-endian hints files on all architectures. As long as there are supported releases with architecture dependent byte order in the hints file, the -B option will allow to prepare images with a hints file for those old releases.