URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Subversion Repositories open8_urisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/open8_urisc/trunk/gnu/binutils/gas
- from Rev 113 to Rev 114
- ↔ Reverse comparison
Rev 113 → Rev 114
/testsuite/gas/pe/peseh-x64-2.s
0,0 → 1,26
.file "t2.c" |
.text |
.p2align 4,,15 |
.globl foo |
.def foo; .scl 2; .type 32; .endef |
.seh_proc foo |
foo: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
leal 1(%rcx), %eax |
cltq |
addq $30, %rax |
andq $-16, %rax |
call ___chkstk |
leaq 32(%rsp), %rcx |
call bar |
movq %rbp, %rsp |
popq %rbp |
ret |
.seh_endproc |
.def bar; .scl 2; .type 32; .endef |
/testsuite/gas/pe/seh-x64-err-1.s
0,0 → 1,40
.file "t1.c" |
.text |
#seh pseudos out of seh_proc block |
|
.seh_endproc |
.seh_stackalloc 8 |
.seh_setframe %rbp, 0 |
.seh_endprologue |
.seh_pushreg %rbp |
.seh_savereg %rbp |
.seh_savexmm %xmm1 |
.seh_handler dummy_handler |
.seh_handler dummy_handler, @unwind |
.seh_handler dummy_handler, @except |
.seh_handler dummy_handler, @unwind,@except |
.seh_handlerdata |
.long 0 |
.text |
.seh_proc |
|
.seh_proc test_foreign_directives |
test_foreign_directives: |
.seh_eh |
.seh_32 |
.seh_no32 |
.long 0 |
.seh_endproc |
|
# test for wrong segment pseudos. |
.seh_proc test_wrong_segment |
test_wrong_segment: |
.data |
.seh_stackalloc 8 |
.seh_setframe %rbp, 0 |
.seh_endprologue |
.seh_pushreg %rbp |
.seh_savereg %rbp |
.seh_savexmm %xmm1 |
.seh_endproc |
|
/testsuite/gas/pe/peseh-x64-3.s
0,0 → 1,31
.file "t3.c" |
.text |
.globl nMainCRTStartup |
.def nMainCRTStartup; .scl 2; .type 32; .endef |
.seh_proc nMainCRTStartup |
nMainCRTStartup: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $48, %rsp |
.seh_stackalloc 48 |
.seh_endprologue |
movl $255, -4(%rbp) |
.l_startw: |
.seh_handler __C_specific_handler, @except |
.seh_handlerdata |
.long 1 |
.rva .l_startw, .l_endw, _gnu_exception_handler ,.l_endw |
.text |
call __security_init_cookie |
call __tmainCRTStartup |
movl %eax, -4(%rbp) |
.l_endw: nop |
movl -4(%rbp), %eax |
addq $48, %rsp |
popq %rbp |
ret |
.seh_endproc |
.def __security_init_cookie; .scl 2; .type 32; .endef |
.def __tmainCRTStartup; .scl 2; .type 32; .endef |
/testsuite/gas/pe/peseh-x64.s
0,0 → 1,14
.file "t1.c" |
.text |
.p2align 4,,15 |
.globl foo |
.def foo; .scl 2; .type 32; .endef |
.seh_proc foo |
foo: |
subq $8, %rsp |
.seh_stackalloc 8 |
.seh_endprologue |
movl $1, %eax |
addq $8, %rsp |
ret |
.seh_endproc |
/testsuite/gas/pe/peseh-x64-4.s
0,0 → 1,564
.file "t4.C" |
.section .text$_ZN5VBase1fEv,"x" |
.linkonce discard |
.align 2 |
.globl _ZN5VBase1fEv |
.def _ZN5VBase1fEv; .scl 2; .type 32; .endef |
.seh_proc _ZN5VBase1fEv |
_ZN5VBase1fEv: |
.LFB0: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
nop |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN10StreamBaseD2Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN10StreamBaseD2Ev |
.def _ZN10StreamBaseD2Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN10StreamBaseD2Ev |
_ZN10StreamBaseD2Ev: |
.LFB2: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq 16(%rbp), %rax |
leaq 16+_ZTV10StreamBase(%rip), %rdx |
movq %rdx, (%rax) |
movl $0, %eax |
andl $1, %eax |
testb %al, %al |
je .L2 |
movq 16(%rbp), %rcx |
call _ZdlPv |
.L2: |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN10StreamBaseD1Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN10StreamBaseD1Ev |
.def _ZN10StreamBaseD1Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN10StreamBaseD1Ev |
_ZN10StreamBaseD1Ev: |
.LFB3: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq 16(%rbp), %rax |
leaq 16+_ZTV10StreamBase(%rip), %rdx |
movq %rdx, (%rax) |
movl $2, %eax |
andl $1, %eax |
testb %al, %al |
je .L5 |
movq 16(%rbp), %rcx |
call _ZdlPv |
.L5: |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN10StreamBaseD0Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN10StreamBaseD0Ev |
.def _ZN10StreamBaseD0Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN10StreamBaseD0Ev |
_ZN10StreamBaseD0Ev: |
.LFB4: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq 16(%rbp), %rcx |
call _ZN10StreamBaseD1Ev |
movq 16(%rbp), %rcx |
call _ZdlPv |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN6StreamD2Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN6StreamD2Ev |
.def _ZN6StreamD2Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN6StreamD2Ev |
_ZN6StreamD2Ev: |
.LFB6: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq %rdx, 24(%rbp) |
movq 24(%rbp), %rax |
movq (%rax), %rdx |
movq 16(%rbp), %rax |
movq %rdx, (%rax) |
movq 16(%rbp), %rax |
movq (%rax), %rax |
subq $24, %rax |
movq (%rax), %rax |
addq 16(%rbp), %rax |
movq 24(%rbp), %rdx |
addq $8, %rdx |
movq (%rdx), %rdx |
movq %rdx, (%rax) |
movq 16(%rbp), %rcx |
call _ZN10StreamBaseD2Ev |
movl $0, %eax |
andl $2, %eax |
testl %eax, %eax |
je .L11 |
movq 16(%rbp), %rax |
addq $8, %rax |
movq %rax, %rcx |
call _ZN5VBaseD2Ev |
.L11: |
movl $0, %eax |
andl $1, %eax |
testb %al, %al |
je .L10 |
movq 16(%rbp), %rcx |
call _ZdlPv |
.L10: |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN6StreamD1Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN6StreamD1Ev |
.def _ZN6StreamD1Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN6StreamD1Ev |
_ZN6StreamD1Ev: |
.LFB7: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
leaq 24+_ZTV6Stream(%rip), %rdx |
movq 16(%rbp), %rax |
movq %rdx, (%rax) |
movl $8, %eax |
addq 16(%rbp), %rax |
leaq 64+_ZTV6Stream(%rip), %rdx |
movq %rdx, (%rax) |
movq 16(%rbp), %rcx |
call _ZN10StreamBaseD2Ev |
movl $2, %eax |
andl $2, %eax |
testl %eax, %eax |
je .L14 |
movq 16(%rbp), %rax |
addq $8, %rax |
movq %rax, %rcx |
call _ZN5VBaseD2Ev |
.L14: |
movl $2, %eax |
andl $1, %eax |
testb %al, %al |
je .L13 |
movq 16(%rbp), %rcx |
call _ZdlPv |
.L13: |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.section .text$_ZN6StreamD0Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN6StreamD0Ev |
.def _ZN6StreamD0Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN6StreamD0Ev |
_ZN6StreamD0Ev: |
.LFB8: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq 16(%rbp), %rcx |
call _ZN6StreamD1Ev |
movq 16(%rbp), %rcx |
call _ZdlPv |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.globl r |
.bss |
.align 4 |
r: |
.space 4 |
.section .text$_ZN13DerivedStreamD1Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN13DerivedStreamD1Ev |
.def _ZN13DerivedStreamD1Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN13DerivedStreamD1Ev |
_ZN13DerivedStreamD1Ev: |
.LFB12: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
pushq %rbx |
.seh_pushreg %rbx |
subq $40, %rsp |
.seh_stackalloc 40 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
leaq 24+_ZTV13DerivedStream(%rip), %rdx |
movq 16(%rbp), %rax |
movq %rdx, (%rax) |
movl $8, %eax |
addq 16(%rbp), %rax |
leaq 64+_ZTV13DerivedStream(%rip), %rdx |
movq %rdx, (%rax) |
leaq _ZTT13DerivedStream(%rip), %rax |
addq $8, %rax |
movq %rax, %rdx |
movq 16(%rbp), %rcx |
.LEHB0: |
call _ZN6StreamD2Ev |
.LEHE0: |
movl $2, %eax |
andl $2, %eax |
testl %eax, %eax |
je .L19 |
movq 16(%rbp), %rax |
addq $8, %rax |
movq %rax, %rcx |
.LEHB1: |
call _ZN5VBaseD2Ev |
.LEHE1: |
.L19: |
movl $2, %eax |
andl $1, %eax |
testb %al, %al |
je .L18 |
movq 16(%rbp), %rcx |
call _ZdlPv |
jmp .L18 |
.L23: |
movq %rax, %rbx |
movl $2, %eax |
andl $2, %eax |
testl %eax, %eax |
je .L22 |
movq 16(%rbp), %rax |
addq $8, %rax |
movq %rax, %rcx |
call _ZN5VBaseD2Ev |
.L22: |
movq %rbx, %rax |
movq %rax, %rcx |
.LEHB2: |
call _Unwind_Resume |
nop |
.LEHE2: |
.L18: |
nop |
addq $40, %rsp |
popq %rbx |
popq %rbp |
ret |
.def __gxx_personality_v0; .scl 2; .type 32; .endef |
.seh_handler _GCC_specific_handler, @unwind, @except |
.seh_handlerdata |
.rva __gxx_personality_v0 |
.section .text$_ZN13DerivedStreamD1Ev,"x" |
.linkonce discard |
.seh_handlerdata |
.LLSDA12: |
.byte 0xff |
.byte 0xff |
.byte 0x1 |
.uleb128 .LLSDACSE12-.LLSDACSB12 |
.LLSDACSB12: |
.uleb128 .LEHB0-.LFB12 |
.uleb128 .LEHE0-.LEHB0 |
.uleb128 .L23-.LFB12 |
.uleb128 0 |
.uleb128 .LEHB1-.LFB12 |
.uleb128 .LEHE1-.LEHB1 |
.uleb128 0 |
.uleb128 0 |
.uleb128 .LEHB2-.LFB12 |
.uleb128 .LEHE2-.LEHB2 |
.uleb128 0 |
.uleb128 0 |
.LLSDACSE12: |
.section .text$_ZN13DerivedStreamD1Ev,"x" |
.linkonce discard |
.seh_endproc |
.section .text$_ZN13DerivedStreamD0Ev,"x" |
.linkonce discard |
.align 2 |
.globl _ZN13DerivedStreamD0Ev |
.def _ZN13DerivedStreamD0Ev; .scl 2; .type 32; .endef |
.seh_proc _ZN13DerivedStreamD0Ev |
_ZN13DerivedStreamD0Ev: |
.LFB13: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $32, %rsp |
.seh_stackalloc 32 |
.seh_endprologue |
movq %rcx, 16(%rbp) |
movq 16(%rbp), %rcx |
call _ZN13DerivedStreamD1Ev |
movq 16(%rbp), %rcx |
call _ZdlPv |
nop |
addq $32, %rsp |
popq %rbp |
ret |
.seh_endproc |
.text |
.globl _Z7ctor2_xv |
.def _Z7ctor2_xv; .scl 2; .type 32; .endef |
.seh_proc _Z7ctor2_xv |
_Z7ctor2_xv: |
.LFB9: |
pushq %rbp |
.seh_pushreg %rbp |
movq %rsp, %rbp |
.seh_setframe %rbp, 0 |
subq $48, %rsp |
.seh_stackalloc 48 |
.seh_endprologue |
leaq -16(%rbp), %rax |
movq %rax, %rcx |
.LEHB3: |
call _ZN13DerivedStreamC1Ev |
leaq -16(%rbp), %rax |
movq %rax, %rcx |
call _ZN13DerivedStreamD1Ev |
.LEHE3: |
.L29: |
movl r(%rip), %eax |
testl %eax, %eax |
je .L27 |
.LEHB4: |
call abort |
nop |
.L27: |
movl $0, %ecx |
call exit |
nop |
.L30: |
movq %rax, %rcx |
call __cxa_begin_catch |
call __cxa_end_catch |
.LEHE4: |
jmp .L29 |
.seh_handler _GCC_specific_handler, @unwind, @except |
.seh_handlerdata |
.rva __gxx_personality_v0 |
.text |
.seh_handlerdata |
.align 4 |
.LLSDA9: |
.byte 0xff |
.byte 0x9b |
.uleb128 .LLSDATT9-.LLSDATTD9 |
.LLSDATTD9: |
.byte 0x1 |
.uleb128 .LLSDACSE9-.LLSDACSB9 |
.LLSDACSB9: |
.uleb128 .LEHB3-.LFB9 |
.uleb128 .LEHE3-.LEHB3 |
.uleb128 .L30-.LFB9 |
.uleb128 0x1 |
.uleb128 .LEHB4-.LFB9 |
.uleb128 .LEHE4-.LEHB4 |
.uleb128 0 |
.uleb128 0 |
.LLSDACSE9: |
.byte 0x1 |
.byte 0 |
.align 4 |
.long 0 |
|
.LLSDATT9: |
.text |
.seh_endproc |
.globl _ZTV13DerivedStream |
.section .data$_ZTV13DerivedStream,"w" |
.linkonce same_size |
.align 32 |
_ZTV13DerivedStream: |
.quad 8 |
.quad 0 |
.quad _ZTI13DerivedStream |
.quad _ZN13DerivedStreamD1Ev |
.quad _ZN13DerivedStreamD0Ev |
.quad 0 |
.quad -8 |
.quad _ZTI13DerivedStream |
.quad _ZN5VBase1fEv |
.globl _ZTT13DerivedStream |
.section .data$_ZTT13DerivedStream,"w" |
.linkonce same_size |
.align 32 |
_ZTT13DerivedStream: |
.quad _ZTV13DerivedStream+24 |
.quad _ZTC13DerivedStream0_6Stream+24 |
.quad _ZTC13DerivedStream0_6Stream+64 |
.quad _ZTV13DerivedStream+64 |
.globl _ZTC13DerivedStream0_6Stream |
.section .data$_ZTC13DerivedStream0_6Stream,"w" |
.linkonce same_size |
.align 32 |
_ZTC13DerivedStream0_6Stream: |
.quad 8 |
.quad 0 |
.quad _ZTI6Stream |
.quad _ZN6StreamD1Ev |
.quad _ZN6StreamD0Ev |
.quad 0 |
.quad -8 |
.quad _ZTI6Stream |
.quad _ZN5VBase1fEv |
.globl _ZTV6Stream |
.section .data$_ZTV6Stream,"w" |
.linkonce same_size |
.align 32 |
_ZTV6Stream: |
.quad 8 |
.quad 0 |
.quad _ZTI6Stream |
.quad _ZN6StreamD1Ev |
.quad _ZN6StreamD0Ev |
.quad 0 |
.quad -8 |
.quad _ZTI6Stream |
.quad _ZN5VBase1fEv |
.globl _ZTT6Stream |
.section .data$_ZTT6Stream,"w" |
.linkonce same_size |
.align 16 |
_ZTT6Stream: |
.quad _ZTV6Stream+24 |
.quad _ZTV6Stream+64 |
.globl _ZTV10StreamBase |
.section .data$_ZTV10StreamBase,"w" |
.linkonce same_size |
.align 32 |
_ZTV10StreamBase: |
.quad 0 |
.quad _ZTI10StreamBase |
.quad _ZN10StreamBaseD1Ev |
.quad _ZN10StreamBaseD0Ev |
.globl _ZTS13DerivedStream |
.section .rdata$_ZTS13DerivedStream,"dr" |
.linkonce same_size |
.align 16 |
_ZTS13DerivedStream: |
.ascii "13DerivedStream\0" |
.globl _ZTI13DerivedStream |
.section .data$_ZTI13DerivedStream,"w" |
.linkonce same_size |
.align 16 |
_ZTI13DerivedStream: |
.quad _ZTVN10__cxxabiv120__si_class_type_infoE+16 |
.quad _ZTS13DerivedStream |
.quad _ZTI6Stream |
.globl _ZTS6Stream |
.section .rdata$_ZTS6Stream,"dr" |
.linkonce same_size |
_ZTS6Stream: |
.ascii "6Stream\0" |
.globl _ZTI6Stream |
.section .data$_ZTI6Stream,"w" |
.linkonce same_size |
.align 32 |
_ZTI6Stream: |
.quad _ZTVN10__cxxabiv121__vmi_class_type_infoE+16 |
.quad _ZTS6Stream |
.long 0 |
.long 2 |
.quad _ZTI5VBase |
.long -6141 |
.space 4 |
.quad _ZTI10StreamBase |
.long 2 |
.space 4 |
.globl _ZTS10StreamBase |
.section .rdata$_ZTS10StreamBase,"dr" |
.linkonce same_size |
_ZTS10StreamBase: |
.ascii "10StreamBase\0" |
.globl _ZTI10StreamBase |
.section .data$_ZTI10StreamBase,"w" |
.linkonce same_size |
.align 16 |
_ZTI10StreamBase: |
.quad _ZTVN10__cxxabiv117__class_type_infoE+16 |
.quad _ZTS10StreamBase |
.globl _ZTS5VBase |
.section .rdata$_ZTS5VBase,"dr" |
.linkonce same_size |
_ZTS5VBase: |
.ascii "5VBase\0" |
.globl _ZTI5VBase |
.section .data$_ZTI5VBase,"w" |
.linkonce same_size |
.align 16 |
_ZTI5VBase: |
.quad _ZTVN10__cxxabiv117__class_type_infoE+16 |
.quad _ZTS5VBase |
.def _ZdlPv; .scl 2; .type 32; .endef |
.def _ZN5VBaseD2Ev; .scl 2; .type 32; .endef |
.def _Unwind_Resume; .scl 2; .type 32; .endef |
.def _ZN13DerivedStreamC1Ev; .scl 2; .type 32; .endef |
.def abort; .scl 2; .type 32; .endef |
.def exit; .scl 2; .type 32; .endef |
.def __cxa_begin_catch; .scl 2; .type 32; .endef |
.def __cxa_end_catch; .scl 2; .type 32; .endef |
/testsuite/gas/pe/aligncomm-a.s
0,0 → 1,11
.file "a.c" |
.comm _h, 16 |
.comm _i, 16 |
.comm _j, 16 |
.comm _k, 16 |
.section .drectve |
.ascii " -aligncomm:_h,5" |
.ascii " -aligncomm:_i,4" |
.ascii " -aligncomm:_j,3" |
.ascii " -aligncomm:_k,2" |
|
testsuite/gas/pe/aligncomm-a.s
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/aligncomm-b.s
===================================================================
--- testsuite/gas/pe/aligncomm-b.s (nonexistent)
+++ testsuite/gas/pe/aligncomm-b.s (revision 114)
@@ -0,0 +1,11 @@
+ .file "a.c"
+ .comm _h, 16, 8
+ .comm _i, 16, 4
+ .comm _j, 16, 2
+ .comm _k, 16, 1
+ .section .drectve
+ .ascii " -aligncomm:_h,5"
+ .ascii " -aligncomm:_i,4"
+ .ascii " -aligncomm:_j,3"
+ .ascii " -aligncomm:_k,2"
+
Index: testsuite/gas/pe/aligncomm-c.s
===================================================================
--- testsuite/gas/pe/aligncomm-c.s (nonexistent)
+++ testsuite/gas/pe/aligncomm-c.s (revision 114)
@@ -0,0 +1,5 @@
+ .file "a.c"
+ .comm _h, 16
+ .comm _i, 16
+ .comm _j, 16
+ .comm _k, 16
testsuite/gas/pe/aligncomm-c.s
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/aligncomm-d.s
===================================================================
--- testsuite/gas/pe/aligncomm-d.s (nonexistent)
+++ testsuite/gas/pe/aligncomm-d.s (revision 114)
@@ -0,0 +1,5 @@
+ .file "a.c"
+ .comm _h, 16, 8
+ .comm _i, 16, 4
+ .comm _j, 16, 2
+ .comm _k, 16, 1
testsuite/gas/pe/aligncomm-d.s
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/section-align-1.s
===================================================================
--- testsuite/gas/pe/section-align-1.s (nonexistent)
+++ testsuite/gas/pe/section-align-1.s (revision 114)
@@ -0,0 +1,15 @@
+
+ .section .none,"dr0"
+ .section .zero,"dr0"
+ .ascii ""
+ .section .one,"dr0"
+ .ascii "1"
+ .section .two,"dr0"
+ .ascii "12"
+ .section .three,"dr0"
+ .ascii "123"
+ .section .four,"dr0"
+ .ascii "1234"
+ .section .five,"dr0"
+ .ascii "12345"
+ .end
Index: testsuite/gas/pe/section-align-3.s
===================================================================
--- testsuite/gas/pe/section-align-3.s (nonexistent)
+++ testsuite/gas/pe/section-align-3.s (revision 114)
@@ -0,0 +1,25 @@
+
+ .section .none,"dr3"
+ .section .zero,"dr3"
+ .ascii ""
+ .section .one,"dr3"
+ .ascii "1"
+ .section .two,"dr3"
+ .ascii "12"
+ .section .three,"dr3"
+ .ascii "123"
+ .section .four,"dr3"
+ .ascii "1234"
+ .section .five,"dr3"
+ .ascii "12345"
+ .section .six,"dr3"
+ .ascii "123456"
+ .section .seven,"dr3"
+ .ascii "1234567"
+ .section .eight,"dr3"
+ .ascii "12345678"
+ .section .nine,"dr3"
+ .ascii "123456789"
+ .section .ten,"dr3"
+ .ascii "1234567890"
+ .end
Index: testsuite/gas/pe/pe.exp
===================================================================
--- testsuite/gas/pe/pe.exp (nonexistent)
+++ testsuite/gas/pe/pe.exp (revision 114)
@@ -0,0 +1,50 @@
+# Expect control script for GAS testsuite PE object-format-specific tests.
+
+# Copyright (C) 2009
+# Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Please email any bugs, comments, and/or additions to this file to:
+# binutils@gnu.org
+
+load_lib gas-dg.exp
+load_lib gas-defs.exp
+
+# These tests can only be run on PE/COFF platforms.
+if {![is_pecoff_format]} {
+ return
+}
+
+run_dump_test "aligncomm-a"
+run_dump_test "aligncomm-b"
+run_dump_test "aligncomm-c"
+run_dump_test "aligncomm-d"
+
+run_dump_test "section-align-1"
+run_dump_test "section-align-3"
+
+# SEH related tests
+
+# These tests are only for x86_64 targets
+if ([istarget "x86_64-*-mingw*"]) then {
+ run_list_test "seh-x64-err-1" ""
+ run_dump_test "peseh-x64"
+ run_dump_test "peseh-x64-2"
+ run_dump_test "peseh-x64-3"
+ run_dump_test "peseh-x64-4"
+ run_dump_test "peseh-x64-5"
+ run_dump_test "peseh-x64-6"
+}
testsuite/gas/pe/pe.exp
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/peseh-x64-2.d
===================================================================
--- testsuite/gas/pe/peseh-x64-2.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64-2.d (revision 114)
@@ -0,0 +1,7 @@
+#objdump: -s -j .xdata
+#name: PE x64 SEH test 2
+
+.*: .*
+
+Contents of section .xdata:
+ 0000 01080305 08320403 01500000 .*
Index: testsuite/gas/pe/peseh-x64-3.d
===================================================================
--- testsuite/gas/pe/peseh-x64-3.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64-3.d (revision 114)
@@ -0,0 +1,9 @@
+#objdump: -s -j .xdata
+#name: PE x64 SEH test 3
+
+.*: .*
+
+Contents of section .xdata:
+ 0000 09080305 08520403 01500000 00000000 .....R...P......
+ 0010 01000000 0f000000 1c000000 00000000 ................
+ 0020 1c000000 .*
Index: testsuite/gas/pe/peseh-x64.d
===================================================================
--- testsuite/gas/pe/peseh-x64.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64.d (revision 114)
@@ -0,0 +1,7 @@
+#objdump: -s -j .xdata
+#name: PE x64 SEH test 1
+
+.*: .*
+
+Contents of section .xdata:
+ 0000 01040100 04020000 .*
Index: testsuite/gas/pe/peseh-x64-4.d
===================================================================
--- testsuite/gas/pe/peseh-x64-4.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64-4.d (revision 114)
@@ -0,0 +1,7 @@
+#objdump: -s -j .xdata\$_ZN5VBase1fEv
+#name: PE x64 SEH test named sections
+
+.*: .*
+
+Contents of section .xdata\$_ZN5VBase1fEv:
+ 0000 01040205 04030150 .*
Index: testsuite/gas/pe/aligncomm-a.d
===================================================================
--- testsuite/gas/pe/aligncomm-a.d (nonexistent)
+++ testsuite/gas/pe/aligncomm-a.d (revision 114)
@@ -0,0 +1,12 @@
+#objdump: -s -j .drectve
+#name: aligned common A
+
+# Test the aligned form of the .comm pseudo-op.
+
+.*: .*
+
+Contents of section .drectve:
+ 0000 202d616c 69676e63 6f6d6d3a 5f682c35 -aligncomm:_h,5
+ 0010 202d616c 69676e63 6f6d6d3a 5f692c34 -aligncomm:_i,4
+ 0020 202d616c 69676e63 6f6d6d3a 5f6a2c33 -aligncomm:_j,3
+ 0030 202d616c 69676e63 6f6d6d3a 5f6b2c32 -aligncomm:_k,2
testsuite/gas/pe/aligncomm-a.d
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/peseh-x64-5.d
===================================================================
--- testsuite/gas/pe/peseh-x64-5.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64-5.d (revision 114)
@@ -0,0 +1,10 @@
+#source: peseh-x64-4.s
+#objdump: -h -j .xdata\$_ZN5VBase1fEv
+#name: PE x64 SEH test sections flags xdata
+
+.*: .*
+
+Sections:
+Idx Name Size VMA LMA File off Algn
+ 4 .xdata\$_ZN5VBase1fEv 00000008 0000000000000000 0000000000000000 000007a4 2\*\*2
+ CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_DISCARD
Index: testsuite/gas/pe/aligncomm-b.d
===================================================================
--- testsuite/gas/pe/aligncomm-b.d (nonexistent)
+++ testsuite/gas/pe/aligncomm-b.d (revision 114)
@@ -0,0 +1,17 @@
+#objdump: -s -j .drectve
+#name: aligned common B
+
+# Test the aligned form of the .comm pseudo-op.
+
+.*: .*
+
+Contents of section .drectve:
+ 0000 202d616c 69676e63 6f6d6d3a 225f6822 -aligncomm:"_h"
+ 0010 2c38202d 616c6967 6e636f6d 6d3a225f ,8 -aligncomm:"_
+ 0020 69222c34 202d616c 69676e63 6f6d6d3a i",4 -aligncomm:
+ 0030 225f6a22 2c32202d 616c6967 6e636f6d "_j",2 -aligncom
+ 0040 6d3a225f 6b222c31 202d616c 69676e63 m:"_k",1 -alignc
+ 0050 6f6d6d3a 5f682c35 202d616c 69676e63 omm:_h,5 -alignc
+ 0060 6f6d6d3a 5f692c34 202d616c 69676e63 omm:_i,4 -alignc
+ 0070 6f6d6d3a 5f6a2c33 202d616c 69676e63 omm:_j,3 -alignc
+ 0080 6f6d6d3a 5f6b2c32 .*omm:_k,2.*
testsuite/gas/pe/aligncomm-b.d
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/aligncomm-c.d
===================================================================
--- testsuite/gas/pe/aligncomm-c.d (nonexistent)
+++ testsuite/gas/pe/aligncomm-c.d (revision 114)
@@ -0,0 +1,8 @@
+#objdump: -s
+#name: aligned common C
+
+# Test the aligned form of the .comm pseudo-op.
+
+.*: .*
+
+# No .drectve section emitted.
testsuite/gas/pe/aligncomm-c.d
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/peseh-x64-6.d
===================================================================
--- testsuite/gas/pe/peseh-x64-6.d (nonexistent)
+++ testsuite/gas/pe/peseh-x64-6.d (revision 114)
@@ -0,0 +1,10 @@
+#source: peseh-x64-4.s
+#objdump: -h -j .pdata\$_ZN5VBase1fEv
+#name: PE x64 SEH test sections flags pdata
+
+.*: .*
+
+Sections:
+Idx Name Size VMA LMA File off Algn
+ 5 .pdata\$_ZN5VBase1fEv 0000000c 0000000000000000 0000000000000000 000007ac 2\*\*2
+ CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA, LINK_ONCE_DISCARD
Index: testsuite/gas/pe/aligncomm-d.d
===================================================================
--- testsuite/gas/pe/aligncomm-d.d (nonexistent)
+++ testsuite/gas/pe/aligncomm-d.d (revision 114)
@@ -0,0 +1,13 @@
+#objdump: -s -j .drectve
+#name: aligned common D
+
+# Test the aligned form of the .comm pseudo-op.
+
+.*: .*
+
+Contents of section .drectve:
+ 0000 202d616c 69676e63 6f6d6d3a 225f6822 -aligncomm:"_h"
+ 0010 2c38202d 616c6967 6e636f6d 6d3a225f ,8 -aligncomm:"_
+ 0020 69222c34 202d616c 69676e63 6f6d6d3a i",4 -aligncomm:
+ 0030 225f6a22 2c32202d 616c6967 6e636f6d "_j",2 -aligncom
+ 0040 6d3a225f 6b222c31 m:"_k",1.*
testsuite/gas/pe/aligncomm-d.d
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: testsuite/gas/pe/section-align-1.d
===================================================================
--- testsuite/gas/pe/section-align-1.d (nonexistent)
+++ testsuite/gas/pe/section-align-1.d (revision 114)
@@ -0,0 +1,29 @@
+#objdump: -h
+#name: section alignment
+
+# Test that alignment works in .section directives.
+
+.*: .*
+
+Sections:
+Idx Name *Size *VMA *LMA *File off *Algn
+ 0 \.text 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 1 \.data 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 2 \.bss 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 3 \.none 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*0
+.*
+ 4 \.zero 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*0
+.*
+ 5 \.one 0*0000001 0*0000000 0*0000000 0*00001a4 2\*\*0
+.*
+ 6 \.two 0*0000002 0*0000000 0*0000000 0*00001a5 2\*\*0
+.*
+ 7 \.three 0*0000003 0*0000000 0*0000000 0*00001a7 2\*\*0
+.*
+ 8 \.four 0*0000004 0*0000000 0*0000000 0*00001aa 2\*\*0
+.*
+ 9 \.five 0*0000005 0*0000000 0*0000000 0*00001ae 2\*\*0
+.*
Index: testsuite/gas/pe/seh-x64-err-1.l
===================================================================
--- testsuite/gas/pe/seh-x64-err-1.l (nonexistent)
+++ testsuite/gas/pe/seh-x64-err-1.l (revision 114)
@@ -0,0 +1,24 @@
+.*: Assembler messages:
+.*:5: Error: .seh_endproc used without .seh_proc
+.*:6: Error: .seh_stackalloc used outside of .seh_proc block
+.*:7: Error: .seh_setframe used outside of .seh_proc block
+.*:8: Error: .seh_endprologue used outside of .seh_proc block
+.*:9: Error: .seh_pushreg used outside of .seh_proc block
+.*:10: Error: .seh_savereg used outside of .seh_proc block
+.*:11: Error: .seh_savexmm used outside of .seh_proc block
+.*:12: Error: .seh_handler used outside of .seh_proc block
+.*:13: Error: .seh_handler used outside of .seh_proc block
+.*:14: Error: .seh_handler used outside of .seh_proc block
+.*:15: Error: .seh_handler used outside of .seh_proc block
+.*:16: Error: .seh_handlerdata used outside of .seh_proc block
+.*:19: Error: .seh_proc requires function label name
+.*:23: Warning: .seh_eh ignored for this target
+.*:24: Warning: .seh_32 ignored for this target
+.*:25: Warning: .seh_no32 ignored for this target
+.*:33: Error: .seh_stackalloc used in segment '.data' instead of expected '.text'
+.*:34: Error: .seh_setframe used in segment '.data' instead of expected '.text'
+.*:35: Error: .seh_endprologue used in segment '.data' instead of expected '.text'
+.*:36: Error: .seh_pushreg used in segment '.data' instead of expected '.text'
+.*:37: Error: .seh_savereg used in segment '.data' instead of expected '.text'
+.*:38: Error: .seh_savexmm used in segment '.data' instead of expected '.text'
+.*:39: Error: .seh_endproc used in segment '.data' instead of expected '.text'
Index: testsuite/gas/pe/section-align-3.d
===================================================================
--- testsuite/gas/pe/section-align-3.d (nonexistent)
+++ testsuite/gas/pe/section-align-3.d (revision 114)
@@ -0,0 +1,39 @@
+#objdump: -h
+#name: section alignment
+
+# Test that alignment works in .section directives.
+
+.*: .*
+
+Sections:
+Idx Name *Size *VMA *LMA *File off *Algn
+ 0 \.text 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 1 \.data 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 2 \.bss 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 3 \.none 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*3
+.*
+ 4 \.zero 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*3
+.*
+ 5 \.one 0*0000008 0*0000000 0*0000000 0*000026c 2\*\*3
+.*
+ 6 \.two 0*0000008 0*0000000 0*0000000 0*0000274 2\*\*3
+.*
+ 7 \.three 0*0000008 0*0000000 0*0000000 0*000027c 2\*\*3
+.*
+ 8 \.four 0*0000008 0*0000000 0*0000000 0*0000284 2\*\*3
+.*
+ 9 \.five 0*0000008 0*0000000 0*0000000 0*000028c 2\*\*3
+.*
+ 10 \.six 0*0000008 0*0000000 0*0000000 0*0000294 2\*\*3
+.*
+ 11 \.seven 0*0000008 0*0000000 0*0000000 0*000029c 2\*\*3
+.*
+ 12 \.eight 0*0000008 0*0000000 0*0000000 0*00002a4 2\*\*3
+.*
+ 13 \.nine 0*0000010 0*0000000 0*0000000 0*00002ac 2\*\*3
+.*
+ 14 \.ten 0*0000010 0*0000000 0*0000000 0*00002bc 2\*\*3
+.*