Files
binutils-gdb/binutils/testsuite/binutils-all/nm-coff-sdef-1.s
Jan Beulich 6fe5e01b13 nm: also retrieve size for COFF function symbols
Like ELF for all symbols, COFF can record size for at least function
ones. Use that - if available - in preference to the distance-to-next-
symbol heuristic.

To be able to use the new test there, make TI C54x follow TI C4x in
providing .sdef to cover for .def already having different meaning.
2025-04-07 12:45:11 +02:00

27 lines
413 B
ArmAsm

.globl text_symbol1
.globl text_symbol2
.globl text_symbol3
.macro ENDFN name:req
.sdef \name
.type 0x20 /* DT_FUNC */
.scl 2 /* C_EXT */
.endef
.sdef \name
.scl 0xff /* C_EFCN */
.val .
.endef
.endm
.text
text_symbol1:
.byte 0,0,0,0
.byte 0,0,0,0
.byte 0,0,0,0
ENDFN text_symbol1
text_symbol2:
.byte 0,0,0,0
.byte 0,0,0,0
ENDFN text_symbol2
text_symbol3:
.byte 0,0,0,0
ENDFN text_symbol3