Similar to D55029. The requirement arises when discussing increasing default max-page-size for lld ARM (D77330). For the record, the default max-page-size on the 3 commonly used linkers: * GNU ld since 2014 (https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=7572ca8989ead4c3425a1500bc241eaaeffa2c89) defaults to 65536 * GNU gold remains 4096 * lld<=10 uses 4096. lld from 11 onwards will use 65536 (D77330) Reviewed By: srhines, thieta Differential Revision: https://reviews.llvm.org/D77746
26 lines
920 B
C++
26 lines
920 B
C++
// Check that we add relevant linker flags for Android ARM/AArch64.
|
|
|
|
// RUN: %clang -### -target arm-linux-androideabi %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=MAX-PAGE-SIZE %s
|
|
|
|
// 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: "-z" "max-page-size=4096"
|