mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
This extends PDB support to the aarch64 PE targets. The changes to the test files are just to make it so they can be assembled as either x86, x86_64, or aarch64, mainly by changing the comment style. The only actual code change here is in adding the architecture constants to pdb.c.
53 lines
769 B
ArmAsm
53 lines
769 B
ArmAsm
.equ CV_SIGNATURE_C13, 4
|
|
.equ DEBUG_S_STRINGTABLE, 0xf3
|
|
.equ DEBUG_S_FILECHKSMS, 0xf4
|
|
.equ CHKSUM_TYPE_MD5, 1
|
|
|
|
.equ NUM_MD5_BYTES, 16
|
|
|
|
.section ".debug$S", "rn"
|
|
.long CV_SIGNATURE_C13
|
|
.long DEBUG_S_STRINGTABLE
|
|
.long .strings_end - .strings_start
|
|
|
|
.strings_start:
|
|
|
|
.asciz ""
|
|
|
|
.src1:
|
|
.asciz "bar"
|
|
|
|
.src2:
|
|
.asciz "baz"
|
|
|
|
.strings_end:
|
|
|
|
.balign 4
|
|
|
|
.long DEBUG_S_FILECHKSMS
|
|
.long .chksms_end - .chksms_start
|
|
|
|
.chksms_start:
|
|
|
|
.long .src1 - .strings_start
|
|
.byte NUM_MD5_BYTES
|
|
.byte CHKSUM_TYPE_MD5
|
|
.long 0xfedcba98
|
|
.long 0x67452310
|
|
.long 0x01234567
|
|
.long 0x89abcdef
|
|
.short 0 /* padding */
|
|
|
|
.long .src2 - .strings_start
|
|
.byte NUM_MD5_BYTES
|
|
.byte CHKSUM_TYPE_MD5
|
|
.long 0x08192a3b
|
|
.long 0x4c5d6e7f
|
|
.long 0x7f6e5d4c
|
|
.long 0x3b2a1908
|
|
.short 0 /* padding */
|
|
|
|
.chksms_end:
|
|
|
|
.balign 4
|