binutils-gdb/ld/testsuite/ld-arm/cmse_main.s
Srinath Parvathaneni bb32413ff7 Ensure that debug information is retained for ARMv8-M security functions.
Consider a file containing only Armv8-M secure entry functions.
This file is compiled and linked with "-march=armv8-m.main -mfloat-abi=hard
-mfpu=fpv5-sp-d16 -mcmse -static --specs=rdimon.specs
-Wl,--section-start,.gnu.sgstubs=0x190000 -ffunction-sections
-fdata-sections
-Wl,--gc-sections -g" options to generate an executable.

The executable generated does not contain any debug information of these
secure entry functions even though it contains secure entry functions in
the .text section.  This patch fixes this problem.
2019-07-02 12:43:59 +01:00

22 lines
329 B
ArmAsm

.arch armv8-m.main
.file "cmse_main.c"
.text
.Ltext0:
.cfi_sections .debug_frame
.section .text.main,"ax",%progbits
.align 1
.global main
.arch armv8-m.main
.syntax unified
.thumb
.thumb_func
.fpu fpv5-sp-d16
.type main, %function
main:
.LFB0:
.file 1 "cmse_main.c"
.loc 1 2 1
.cfi_startproc
.cfi_endproc
.LFE0: