diff options
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.d | 16 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.s | 42 |
2 files changed, 58 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.d b/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.d new file mode 100644 index 0000000..27cb6e1 --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.d @@ -0,0 +1,16 @@ +#skip: aarch64_be-*-* +#ld: -e0 +#PROG: objcopy +#objcopy: -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* -j .reloc --target=efi-app-aarch64 +#objdump: -h -f +#name: Check if efi app format is recognized + +.*: file format pei-aarch64-little +architecture: aarch64, flags 0x00000132: +EXEC_P, HAS_SYMS, HAS_LOCALS, D_PAGED +start address 0x0000000000000000 + +Sections: +Idx Name Size VMA LMA File off Algn + 0 \.text 00000030 0[^ ]+ 0[^ ]+ 0[^ ]+ 2\*\*2 + CONTENTS, ALLOC, LOAD, READONLY, CODE diff --git a/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.s b/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.s new file mode 100644 index 0000000..dafc5fa --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.s @@ -0,0 +1,42 @@ + .arch armv8-a + .text + .align 2 + .global foo + .type foo, %function +foo: +.LFB0: + .cfi_startproc + sub sp, sp, #16 + .cfi_def_cfa_offset 16 + str w0, [sp, 12] + ldr w0, [sp, 12] + mul w0, w0, w0 + add sp, sp, 16 + .cfi_def_cfa_offset 0 + ret + .cfi_endproc +.LFE0: + .size foo, .-foo + .align 2 + .global main + .type main, %function +main: +.LFB1: + .cfi_startproc + stp x29, x30, [sp, -16]! + .cfi_def_cfa_offset 16 + .cfi_offset 29, -16 + .cfi_offset 30, -8 + mov x29, sp + mov w0, 5 + bl foo + ldp x29, x30, [sp], 16 + .cfi_restore 30 + .cfi_restore 29 + .cfi_def_cfa_offset 0 + ret + .cfi_endproc +.LFE1: + .size main, .-main + .ident "GCC: (fsf-trunk.2870) 12.0.0 20210930 (experimental)" + .section .note.GNU-stack,"",@progbits |