llvm-project/clang/lib/Driver/ToolChains
Zhizhou Yang 514a647433 set default max-page-size to 4KB in lld for Android Aarch64
Summary:
This patch passes an option '-z max-page-size=4096' to lld through clang driver.

This is for Android on Aarch64 target.

The lld default page size is too large for Aarch64, which produces larger .so files and images for arm64 device targets.
In this patch we set default page size to 4KB for Android Aarch64 targets instead.

Reviewers: srhines, danalbert, ruiu, chh, peter.smith

Reviewed By: srhines

Subscribers: javed.absar, kristof.beyls, cfe-commits, george.burgess.iv, llozano

Differential Revision: https://reviews.llvm.org/D55029

llvm-svn: 347897
2018-11-29 18:52:22 +00:00
..
Arch [PowerPC] Set the default PLT mode on OpenBSD/powerpc to Secure PLT. 2018-11-19 00:21:06 +00:00
AMDGPU.cpp AMDGPU: Default to hidden visibility 2018-08-30 08:18:06 +00:00
AMDGPU.h AMDGPU: Default to hidden visibility 2018-08-30 08:18:06 +00:00
AVR.cpp
AVR.h
Ananas.cpp Remove unused includes of clang/Config/config.h 2018-04-28 23:48:36 +00:00
Ananas.h Add support for Ananas platform 2017-06-25 08:29:09 +00:00
BareMetal.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
BareMetal.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
Clang.cpp Add Hurd target to Clang driver (2/2) 2018-11-29 03:49:14 +00:00
Clang.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CloudABI.cpp Remove unused includes of clang/Config/config.h 2018-04-28 23:48:36 +00:00
CloudABI.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
CommonArgs.cpp Revert "[clang] - Simplify tools::SplitDebugName." 2018-11-27 17:28:38 +00:00
CommonArgs.h Revert "[clang] - Simplify tools::SplitDebugName." 2018-11-27 17:28:38 +00:00
Contiki.cpp
Contiki.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
CrossWindows.cpp Consistently make llvm::opt::ArgStringList usage explicit to try and appease MSVC 2015 buildbots. NFCI. 2018-10-12 18:55:36 +00:00
CrossWindows.h [Driver][Darwin] Pass -munwind-table when !UseSjLjExceptions. 2017-08-03 23:55:42 +00:00
Cuda.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Cuda.h [DEBUGINFO] Disable unsupported debug info options for NVPTX target. 2018-07-27 19:45:14 +00:00
Darwin.cpp [Darwin] Export new weak external symbols when compiling with coverage 2018-11-06 22:25:00 +00:00
Darwin.h [Xray] Darwin - Enable in the driver side 2018-08-27 05:16:09 +00:00
DragonFly.cpp Introduce -nostdlib++ flag to disable linking the C++ standard library. 2017-07-25 18:02:57 +00:00
DragonFly.h
FreeBSD.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
FreeBSD.h Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
Fuchsia.cpp [Driver] Support XRay on Fuchsia 2018-11-22 02:36:47 +00:00
Fuchsia.h [Driver] Enable SafeStack by default on Fuchsia 2018-03-07 02:49:58 +00:00
Gnu.cpp Add Hurd target to Clang driver (2/2) 2018-11-29 03:49:14 +00:00
Gnu.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
HIP.cpp Disable code object version 3 for HIP toolchain 2018-10-16 17:36:23 +00:00
HIP.h [HIP] Support early finalization of device code for -fno-gpu-rdc 2018-10-02 17:48:54 +00:00
Haiku.cpp [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
Haiku.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
Hexagon.cpp Revert r345170 [along with its llvm counterpart r345169] as it makes Halide builds timeout. 2018-10-27 04:51:09 +00:00
Hexagon.h [Hexagon] Use GetLinkerPath instead of hard-coded string. 2018-10-10 15:37:03 +00:00
Hurd.cpp Add Hurd target to Clang driver (2/2) 2018-11-29 03:49:14 +00:00
Hurd.h Add Hurd target to Clang driver (2/2) 2018-11-29 03:49:14 +00:00
Lanai.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
Linux.cpp set default max-page-size to 4KB in lld for Android Aarch64 2018-11-29 18:52:22 +00:00
Linux.h [Driver] Reland again again: Default Android toolchains to libc++. 2018-11-05 20:57:46 +00:00
MSVC.cpp [clang-cl] Do not allow using both /Zc:dllexportInlines- and /fallback flag 2018-11-13 04:14:09 +00:00
MSVC.h [codeview] Make "clang -g" emit codeview by default when targetting MSVC 2018-11-14 22:59:27 +00:00
MSVCSetupApi.h Update clang-cl driver for MSVC 2017. 2017-03-15 16:07:35 +00:00
MinGW.cpp Revert "[clang] - Simplify tools::SplitDebugName." 2018-11-27 17:28:38 +00:00
MinGW.h [MinGW] Allow using LTO when lld is used as linker 2018-10-12 20:15:51 +00:00
Minix.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Minix.h
MipsLinux.cpp Remove unused includes of clang/Config/config.h 2018-04-28 23:48:36 +00:00
MipsLinux.h [Driver] Change MipsLinux default linker from "lld" to "ld.lld" 2018-08-26 19:47:23 +00:00
Myriad.cpp [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
Myriad.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
NaCl.cpp Revert "Handle the default case" 2018-04-10 21:29:18 +00:00
NaCl.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
NetBSD.cpp [ARM][AArch64] Pass through endian flags to assembler and linker. 2018-10-16 09:21:17 +00:00
NetBSD.h [Driver] Allow drivers to add multiple libc++ include paths 2018-04-10 19:55:55 +00:00
OpenBSD.cpp Reapply Pass the nopie flag to the linker when linking with -pg. 2018-10-28 03:30:18 +00:00
OpenBSD.h Some improvements to the OpenBSD driver. 2018-10-11 16:13:44 +00:00
PS4CPU.cpp [Driver] Add flag "--dependent-lib=..." when enabling asan or ubsan on PS4. 2018-06-06 14:04:15 +00:00
PS4CPU.h [Driver] Add flag "--dependent-lib=..." when enabling asan or ubsan on PS4. 2018-06-06 14:04:15 +00:00
RISCVToolchain.cpp NFC: Fix some darwin linker warnings introduced in r338385 2018-09-27 20:36:28 +00:00
RISCVToolchain.h NFC: Fix some darwin linker warnings introduced in r338385 2018-09-27 20:36:28 +00:00
Solaris.cpp [Solaris] Silence -pthread warning on Solaris 2018-02-06 13:21:12 +00:00
Solaris.h [Sanitizers] Basic Solaris sanitizer support (PR 33274) 2018-02-05 23:59:13 +00:00
TCE.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
TCE.h
WebAssembly.cpp [WebAssembly] clang-format (NFC) 2018-08-31 20:57:00 +00:00
WebAssembly.h [WebAssembly] clang-format (NFC) 2018-08-31 20:57:00 +00:00
XCore.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
XCore.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00