New strings no longer relocatable
authorNicholas Ormrod <njormrod@fb.com>
Thu, 31 Mar 2016 22:09:14 +0000 (15:09 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Thu, 31 Mar 2016 22:20:21 +0000 (15:20 -0700)
commit9a781ed447f583aecdce9b321329a55b90898aaa
tree659a67c31618c2ba0c252bc7f253ba01400d1cf6
parent8ddc5992d18f45c3608fb9d6d3c1e4dfa106831a
New strings no longer relocatable

Summary:gcc-5.0 introduced non-relocatable strings in libgcc. Only treat gcc < 5 strings as relocatable. Enable relocation for fbstrings via typedef.

Re https://github.com/facebook/folly/issues/316, thanks tomhughes for reporting this.

Reviewed By: snarkmaster, ot

Differential Revision: D3115580

fb-gh-sync-id: d8aff947d55a0a0c57f6b997f651a190e05f2779
fbshipit-source-id: d8aff947d55a0a0c57f6b997f651a190e05f2779
folly/FBString.h
folly/Traits.h
folly/test/TraitsTest.cpp