Displaying 1 result from an estimated 1 matches for "assume_near".
2013 Jun 23
1
[LLVMdev] Telling clang/LLVM a data object is "near"
...although the data is not static - it is still reachable with a near address. For instance, if it's in another source file that is statically linked to a resulting object file with size < 2GB.
Is there a way to tell clang to assume that a piece of data is near, such as
extern __attribute((assume_near))__ int x;
and generate code accordingly (i.e. not via GOT access).
Thanks in Advance.