(Patch in progress)
Add support for this GCC option which has the purpose of disallowing text relative accesses of module local symbols with PIC.
I am fumbling a bit with this and would like to ask for some help as I have no good idea of how this is best done. My idea so far has been to
- patch adjustGVALinkageForAttributes() to change the Linkage to External for these GlobalValues.
- Add Driver option but I could not make this work all the way into CompilerInvocation.cpp. The round-trip check of the arguments is failing... :-/