mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +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.
143 lines
2.3 KiB
ArmAsm
143 lines
2.3 KiB
ArmAsm
.arch armv8-m.main
|
|
.file "sec.c"
|
|
.text
|
|
.Ltext0:
|
|
.cfi_sections .debug_frame
|
|
.section .text.SecureLED_On,"ax",%progbits
|
|
.align 1
|
|
.global SecureLED_On
|
|
.global __acle_se_SecureLED_On
|
|
.arch armv8-m.main
|
|
.syntax unified
|
|
.thumb
|
|
.thumb_func
|
|
.fpu fpv5-sp-d16
|
|
.type __acle_se_SecureLED_On, %function
|
|
.syntax unified
|
|
.thumb
|
|
.thumb_func
|
|
.fpu fpv5-sp-d16
|
|
.type SecureLED_On, %function
|
|
SecureLED_On:
|
|
__acle_se_SecureLED_On:
|
|
.LFB0:
|
|
.file 1 "sec.c"
|
|
.loc 1 3 1
|
|
.cfi_startproc
|
|
push {r7}
|
|
.cfi_def_cfa_offset 4
|
|
.cfi_offset 7, -4
|
|
add r7, sp, #0
|
|
.cfi_def_cfa_register 7
|
|
.loc 1 4 1
|
|
mov sp, r7
|
|
.cfi_def_cfa_register 13
|
|
ldr r7, [sp], #4
|
|
.cfi_restore 7
|
|
.cfi_def_cfa_offset 0
|
|
bxns lr
|
|
.cfi_endproc
|
|
.LFE0:
|
|
.size SecureLED_On, .-SecureLED_On
|
|
.text
|
|
.Letext0:
|
|
.section .debug_info,"",%progbits
|
|
.Ldebug_info0:
|
|
.4byte 0x34
|
|
.2byte 0x4
|
|
.4byte .Ldebug_abbrev0
|
|
.byte 0x4
|
|
.uleb128 0x1
|
|
.4byte .LASF0
|
|
.byte 0xc
|
|
.4byte .LASF1
|
|
.4byte .LASF2
|
|
.4byte .Ldebug_ranges0+0
|
|
.4byte 0
|
|
.4byte .Ldebug_line0
|
|
.uleb128 0x2
|
|
.4byte .LASF3
|
|
.byte 0x1
|
|
.byte 0x2
|
|
.byte 0x1
|
|
.4byte .LFB0
|
|
.4byte .LFE0-.LFB0
|
|
.uleb128 0x1
|
|
.byte 0x9c
|
|
.byte 0
|
|
.section .debug_abbrev,"",%progbits
|
|
.Ldebug_abbrev0:
|
|
.uleb128 0x1
|
|
.uleb128 0x11
|
|
.byte 0x1
|
|
.uleb128 0x25
|
|
.uleb128 0xe
|
|
.uleb128 0x13
|
|
.uleb128 0xb
|
|
.uleb128 0x3
|
|
.uleb128 0xe
|
|
.uleb128 0x1b
|
|
.uleb128 0xe
|
|
.uleb128 0x55
|
|
.uleb128 0x17
|
|
.uleb128 0x11
|
|
.uleb128 0x1
|
|
.uleb128 0x10
|
|
.uleb128 0x17
|
|
.byte 0
|
|
.byte 0
|
|
.uleb128 0x2
|
|
.uleb128 0x2e
|
|
.byte 0
|
|
.uleb128 0x3f
|
|
.uleb128 0x19
|
|
.uleb128 0x3
|
|
.uleb128 0xe
|
|
.uleb128 0x3a
|
|
.uleb128 0xb
|
|
.uleb128 0x3b
|
|
.uleb128 0xb
|
|
.uleb128 0x39
|
|
.uleb128 0xb
|
|
.uleb128 0x11
|
|
.uleb128 0x1
|
|
.uleb128 0x12
|
|
.uleb128 0x6
|
|
.uleb128 0x40
|
|
.uleb128 0x18
|
|
.uleb128 0x2117
|
|
.uleb128 0x19
|
|
.byte 0
|
|
.byte 0
|
|
.byte 0
|
|
.section .debug_aranges,"",%progbits
|
|
.4byte 0x1c
|
|
.2byte 0x2
|
|
.4byte .Ldebug_info0
|
|
.byte 0x4
|
|
.byte 0
|
|
.2byte 0
|
|
.2byte 0
|
|
.4byte .LFB0
|
|
.4byte .LFE0-.LFB0
|
|
.4byte 0
|
|
.4byte 0
|
|
.section .debug_ranges,"",%progbits
|
|
.Ldebug_ranges0:
|
|
.4byte .LFB0
|
|
.4byte .LFE0
|
|
.4byte 0
|
|
.4byte 0
|
|
.section .debug_line,"",%progbits
|
|
.Ldebug_line0:
|
|
.section .debug_str,"MS",%progbits,1
|
|
.LASF1:
|
|
.ascii "sec.c\000"
|
|
.LASF0:
|
|
.ascii "GNU C17 10.0.0 20190617\000"
|
|
.LASF3:
|
|
.ascii "SecureLED_On\000"
|
|
.LASF2:
|
|
.ascii "Blinky\000"
|
|
.ident "GCC: (GNU) 10.0.0 20190617 (experimental)"
|