mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
bb32413ff7
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.
22 lines
329 B
ArmAsm
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:
|