mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-17 04:06:08 +00:00

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
23 lines
808 B
C++
23 lines
808 B
C++
// Check that we automatically add relevant linker flags for Android aarch64.
|
|
|
|
// RUN: %clang -target aarch64-none-linux-android \
|
|
// RUN: -### -v %s 2> %t
|
|
// RUN: FileCheck -check-prefix=GENERIC-ARM < %t %s
|
|
//
|
|
// RUN: %clang -target aarch64-none-linux-android \
|
|
// RUN: -mcpu=cortex-a53 -### -v %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CORTEX-A53 < %t %s
|
|
//
|
|
// RUN: %clang -target aarch64-none-linux-android \
|
|
// RUN: -mcpu=cortex-a57 -### -v %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CORTEX-A57 < %t %s
|
|
//
|
|
// RUN: %clang -target aarch64-none-linux-android \
|
|
// RUN: -### -v %s 2> %t
|
|
// RUN: FileCheck -check-prefix=MAX-PAGE-SIZE < %t %s
|
|
//
|
|
// GENERIC-ARM: --fix-cortex-a53-843419
|
|
// CORTEX-A53: --fix-cortex-a53-843419
|
|
// CORTEX-A57-NOT: --fix-cortex-a53-843419
|
|
// MAX-PAGE-SIZE: max-page-size=4096
|