This patch is a companion to https://reviews.llvm.org/D40944.
I've got an experimental version of Solaris ld that does support the non-standard
GNU ld extension of adding start_SECNAME and stop_SECNAME labels to
sections whose names are valid as C identifiers.
It documents that support (although the comment in lib/Transforms/Instrumentation/InstrProfiling.cpp
(needsRuntimeRegistrationOfSectionRange) is quite cryptic what it's actually about,
and adapts the affected testcase not to expect the alternativ llvm_profile_register_functions
and llvm_profile_init.
I'm posting this patch for reference now, but it's problematic in how to deal with
either older Solaris versions or OpenSolaris derivatives where ld doesn't support
this extension.