[PATCH] D151733: [AIX] Update CMake linker flags to use large glink code
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 10:17:49 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGab00b10d722d: [AIX] Update CMake linker flags to use large glink code (authored by azhan92, committed by daltenty).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151733/new/
https://reviews.llvm.org/D151733
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -212,6 +212,8 @@
# -fPIC does not enable the large code model for GCC on AIX but does for XL.
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
append("-mcmodel=large" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
+ append("-Wl,-bglink=large"
+ CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "XL")
# XL generates a small number of relocations not of the large model, -bbigtoc is needed.
append("-Wl,-bbigtoc"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151733.529661.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/d8b7161f/attachment.bin>
More information about the llvm-commits
mailing list