Ensure that debug information is retained for ARMv8-M security functions.
authorSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Tue, 2 Jul 2019 11:43:59 +0000 (12:43 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 2 Jul 2019 11:43:59 +0000 (12:43 +0100)
commitbb32413ff7247f5ac3685ca9075b3432bca69a82
tree7080f32670d5b6264ba6953f4cbd05a9240ffd22
parent01c1ee4a70478178eb37e46692a02fb846a2f77b
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.
bfd/ChangeLog
bfd/elf32-arm.c
ld/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/cmse_main.s [new file with mode: 0644]
ld/testsuite/ld-arm/cmse_main_sec_debug.d [new file with mode: 0644]
ld/testsuite/ld-arm/cmse_sec_debug.s [new file with mode: 0644]
This page took 0.025259 seconds and 4 git commands to generate.