brintos

brintos / llvm-project-archived public Read only

0
0
Text · 640 B · beffdfb Raw
18 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple arm-gnu-linux-eabi -mcpu cortex-a7 -arm-add-build-attributes %s -o %t.o3// RUN: echo "ENTRY(__entrypoint) SECTIONS { . = 0x10000; .text : { *(.text .text.*) } /DISCARD/ : { *(.ARM.exidx*) *(.gnu.linkonce.armexidx.*) } }" > %t.script4// RUN: ld.lld -T %t.script %t.o -o %t.elf5// RUN: llvm-readobj --sections %t.elf | FileCheck %s6 7.globl  __entrypoint8__entrypoint:9.fnstart10    bx  lr11 .save {r7, lr}12 .setfp r7, sp, #013 .fnend14// Check that .ARM.exidx/.gnu.linkonce.armexidx15// are correctly removed if they were added.16// CHECK-NOT: .ARM.exidx17// CHECK-NOT: .gnu.linkonce.armexidx.18