HSBC said on Friday it has agreed to buy back its global headquarters in London's Canary Wharf from Spain's troubled property company Metrovacesa for a total of £838 mln (EUR 968 mln). The bank said it is booking a gain of approximately £250 mln in its second-half results.