Merge "platform: Add weak symbol for hs only mode"