repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
tactcomplabs/xbgas-binutils-gdb
1,842
ld/testsuite/ld-i386/ifunc-1d.S
.text .p2align 4,,15 .type implementation1, @function implementation1: movl $1, %eax ret .size implementation1, .-implementation1 .p2align 4,,15 .type implementation2, @function implementation2: movl $2, %eax ret .size implementation2, .-implementation2 .p2align 4,,15 .type resolver2, @function resolver2: call __x86.get_pc_thunk.ax addl $_GLOBAL_OFFSET_TABLE_, %eax leal implementation2@GOTOFF(%eax), %eax ret .size resolver2, .-resolver2 .type func2, @gnu_indirect_function .set func2,resolver2 .p2align 4,,15 .type resolver1, @function resolver1: call __x86.get_pc_thunk.ax addl $_GLOBAL_OFFSET_TABLE_, %eax leal implementation1@GOTOFF(%eax), %eax ret .size resolver1, .-resolver1 .globl func1 .type func1, @gnu_indirect_function .set func1,resolver1 .p2align 4,,15 .globl get_func2 .type get_func2, @function get_func2: call __x86.get_pc_thunk.ax addl $_GLOBAL_OFFSET_TABLE_, %eax movl func2@GOT(%eax), %eax ret .size get_func2, .-get_func2 .p2align 4,,15 .globl call_func2 .type call_func2, @function call_func2: pushl %ebx call __x86.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $8, %esp call *get_func2@GOT(%ebx) cmpl func2@GOT(%ebx), %eax jne .L10 addl $8, %esp movl %ebx, %eax popl %ebx jmp *func2@GOT(%eax) .L10: call *abort@GOT(%ebx) .size call_func2, .-call_func2 .section .text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat .globl __x86.get_pc_thunk.ax .hidden __x86.get_pc_thunk.ax .type __x86.get_pc_thunk.ax, @function __x86.get_pc_thunk.ax: movl (%esp), %eax ret .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat .globl __x86.get_pc_thunk.bx .hidden __x86.get_pc_thunk.bx .type __x86.get_pc_thunk.bx, @function __x86.get_pc_thunk.bx: movl (%esp), %ebx ret .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
3,851
ld/testsuite/ld-i386/tlsbinpic.s
/* Force .got aligned to 4K, so it very likely gets at 0x804a100 (0x60 bytes .tdata and 0xa0 bytes .dynamic) */ .section ".tdata", "awT", @progbits .balign 4096 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x8049000. */ .text .balign 4096 .globl fn2 .type fn2,@function fn2: pushl %ebp movl %esp, %ebp pushl %ebx pushl %eax call 1f 1: popl %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx nop;nop;nop;nop /* GD -> IE because variable is not defined in executable */ leal sG1@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through @gottpoff too */ leal sG2@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through @gotntpoff too */ leal sG3@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through @gottpoff and @gotntpoff too */ leal sG4@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ leal sg1@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ leal sl1@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ leal sh1@tlsgd(,%ebx,1), %eax call ___tls_get_addr@plt nop;nop;nop;nop /* LD -> LE */ leal sl1@tlsldm(%ebx), %eax call ___tls_get_addr@PLT nop;nop leal sl1@dtpoff(%eax), %edx nop;nop leal sl2@dtpoff(%eax), %ecx nop;nop;nop;nop /* LD -> LE against hidden variables */ leal sh1@tlsldm(%ebx), %eax call ___tls_get_addr@PLT nop;nop leal sh1@dtpoff(%eax), %edx nop;nop leal sh2@dtpoff(%eax), %ecx nop;nop;nop;nop /* @gottpoff IE against global var */ movl %gs:0, %ecx nop;nop subl sG2@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gottpoff IE against global var */ movl %gs:0, %eax nop;nop subl sG4@gottpoff(%ebx), %eax nop;nop;nop;nop /* @gotntpoff IE against global var */ movl %gs:0, %ecx nop;nop addl sG3@gotntpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE against global var */ movl %gs:0, %eax nop;nop addl sG4@gotntpoff(%ebx), %eax nop;nop;nop;nop /* @gottpoff IE -> LE against global var defined in exec */ movl %gs:0, %ecx nop;nop subl sg1@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE -> LE against local var */ movl %gs:0, %ecx nop;nop addl sl1@gotntpoff(%ebx), %eax nop;nop;nop;nop /* @gottpoff IE -> LE against hidden var */ movl %gs:0, %ecx nop;nop subl sh1@gottpoff(%ebx), %ecx nop;nop;nop;nop /* Direct access through %gs */ /* @gotntpoff IE against global var */ movl sG5@gotntpoff(%ebx), %ecx nop;nop movl %gs:(%ecx), %edx nop;nop;nop;nop /* @gotntpoff IE->LE against local var */ movl sl5@gotntpoff(%ebx), %eax nop;nop movl %gs:(%eax), %edx nop;nop;nop;nop /* @gotntpoff IE->LE against hidden var */ movl sh5@gotntpoff(%ebx), %edx nop;nop movl %gs:(%edx), %edx nop;nop;nop;nop /* GD -> IE because variable is not defined in executable */ leal sG1@tlsgd(%ebx), %eax call ___tls_get_addr@plt nop;nop;nop;nop;nop movl -4(%ebp), %ebx leave ret
tactcomplabs/xbgas-binutils-gdb
6,243
ld/testsuite/ld-i386/tlspic3.s
.section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 .text .globl fn1 .type fn1,@function fn1: pushl %ebp movl %esp, %ebp pushl %ebx pushl %eax call 1f 1: popl %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx nop;nop;nop;nop /* GD */ leal sg1@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE because variable is referenced through @gottpoff too */ leal sg2@tlsgd(%ecx), %eax call *___tls_get_addr@GOT(%ecx) nop;nop;nop;nop /* GD -> IE because variable is referenced through @gotntpoff too */ leal sg3@tlsgd(%edx), %eax call *___tls_get_addr@GOT(%edx) nop;nop;nop;nop /* GD -> IE because variable is referenced through @gottpoff and @gotntpoff too */ leal sg4@tlsgd(%edi), %eax call *___tls_get_addr@GOT(%edi) nop;nop;nop;nop /* GD against local variable */ leal sl1@tlsgd(%esi), %eax call *___tls_get_addr@GOT(%esi) nop;nop;nop;nop /* GD -> IE against local variable referenced through @gottpoff too */ leal sl2@tlsgd(%ebp), %eax call *___tls_get_addr@GOT(%ebp) nop;nop;nop;nop /* GD -> IE against local variable referenced through @gotntpoff too */ leal sl3@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against local variable referenced through @gottpoff and @gotntpoff too */ leal sl4@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD against hidden and local variable */ leal sh1@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through @gottpoff too */ leal sh2@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through @gotntpoff too */ leal sh3@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through @gottpoff and @gotntpoff too */ leal sh4@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD against hidden but not local variable */ leal sH1@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through @gottpoff too */ leal sH2@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through @gotntpoff too */ leal sH3@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through @gottpoff and @gotntpoff too */ leal sH4@tlsgd(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop;nop;nop;nop /* LD */ leal sl1@tlsldm(%ebx), %eax call *___tls_get_addr@GOT(%ebx) nop leal sl1@dtpoff(%eax), %edx nop;nop leal 2+sl2@dtpoff(%eax), %ecx nop;nop;nop;nop /* LD against hidden and local variables */ leal sh1@tlsldm(%ecx), %eax call *___tls_get_addr@GOT(%ecx) nop leal sh1@dtpoff(%eax), %edx nop;nop leal sh2@dtpoff+3(%eax), %ecx nop;nop;nop;nop /* LD against hidden but not local variables */ leal sH1@tlsldm(%edx), %eax call *___tls_get_addr@GOT(%edx) nop leal sH1@dtpoff(%eax), %edx nop;nop leal sH2@dtpoff+1(%eax), %ecx nop;nop /* @gottpoff IE against global var */ movl %gs:0, %ecx nop;nop subl sg2@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gottpoff IE against global var */ movl %gs:0, %eax nop;nop subl sg4@gottpoff(%ebx), %eax nop;nop;nop;nop /* @gotntpoff IE against global var */ movl %gs:0, %ecx nop;nop addl sg3@gotntpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE against global var */ movl %gs:0, %eax nop;nop addl sg4@gotntpoff(%ebx), %eax nop;nop;nop;nop /* @gottpoff IE against local var */ movl %gs:0, %ecx nop;nop subl sl2@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gottpoff IE against local var */ movl %gs:0, %eax nop;nop subl sl4@gottpoff(%ebx), %eax nop;nop;nop;nop /* @gotntpoff IE against local var */ movl %gs:0, %ecx nop;nop addl sl3@gotntpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE against local var */ movl %gs:0, %eax nop;nop addl sl4@gotntpoff(%ebx), %eax nop;nop;nop;nop /* @gottpoff IE against hidden and local var */ movl %gs:0, %ecx nop;nop subl sh2@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gottpoff IE against hidden and local var */ movl %gs:0, %eax nop;nop subl sh4@gottpoff(%ebx), %eax nop;nop;nop;nop /* @gotntpoff IE against hidden and local var */ movl %gs:0, %ecx nop;nop addl sh3@gotntpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE against hidden and local var */ movl %gs:0, %eax nop;nop addl sh4@gotntpoff(%ebx), %eax nop;nop;nop;nop /* @gottpoff IE against hidden but not local var */ movl %gs:0, %ecx nop;nop subl sH2@gottpoff(%ebx), %ecx nop;nop;nop;nop /* @gottpoff IE against hidden but not local var */ movl %gs:0, %eax nop;nop subl sH4@gottpoff(%ebx), %eax nop;nop;nop;nop /* @gotntpoff IE against hidden but not local var */ movl %gs:0, %ecx nop;nop addl sH3@gotntpoff(%ebx), %ecx nop;nop;nop;nop /* @gotntpoff IE against hidden but not local var */ movl %gs:0, %eax nop;nop addl sH4@gotntpoff(%ebx), %eax nop;nop;nop;nop /* Direct access through %gs */ /* @gotntpoff IE against global var */ movl sg5@gotntpoff(%ebx), %ecx nop;nop movl %gs:(%ecx), %edx nop;nop;nop;nop /* @gotntpoff IE against local var */ movl sl5@gotntpoff(%ebx), %eax nop;nop movl %gs:(%eax), %edx nop;nop;nop;nop /* @gotntpoff IE against hidden and local var */ movl sh5@gotntpoff(%ebx), %edx nop;nop movl %gs:(%edx), %edx nop;nop;nop;nop /* @gotntpoff IE against hidden but not local var */ movl sH5@gotntpoff(%ebx), %ecx nop;nop movl %gs:(%ecx), %edx nop;nop;nop;nop movl -4(%ebp), %ebx leave ret
tactcomplabs/xbgas-binutils-gdb
1,565
ld/testsuite/ld-i386/tls-ld1.S
.text .p2align 4,,15 .globl get_ld .type get_ld, @function get_ld: pushl %ebx call __x86.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $8, %esp leal ld@tlsldm(%ebx), %eax call ___tls_get_addr@PLT leal ld@dtpoff(%eax), %eax addl $8, %esp popl %ebx ret .size get_ld, .-get_ld .p2align 4,,15 .globl set_ld .type set_ld, @function set_ld: pushl %ebx call __x86.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $8, %esp leal ld@tlsldm(%ebx), %eax call ___tls_get_addr@PLT movl 16(%esp), %edx leal ld@dtpoff(%eax), %eax movl %edx, (%eax) addl $8, %esp popl %ebx ret .size set_ld, .-set_ld .p2align 4,,15 .globl test_ld .type test_ld, @function test_ld: call __x86.get_pc_thunk.cx addl $_GLOBAL_OFFSET_TABLE_, %ecx subl $12, %esp leal ld@tlsldm(%ecx), %eax call *___tls_get_addr@GOT(%ecx) movl 16(%esp), %ecx leal ld@dtpoff(%eax), %eax cmpl %ecx, (%eax) sete %al addl $12, %esp movzbl %al, %eax ret .size test_ld, .-test_ld .section .tbss,"awT",@nobits .align 4 .type ld, @object .size ld, 4 ld: .zero 4 .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat .globl __x86.get_pc_thunk.bx .hidden __x86.get_pc_thunk.bx .type __x86.get_pc_thunk.bx, @function __x86.get_pc_thunk.bx: movl (%esp), %ebx ret .section .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat .globl __x86.get_pc_thunk.cx .hidden __x86.get_pc_thunk.cx .type __x86.get_pc_thunk.cx, @function __x86.get_pc_thunk.cx: movl (%esp), %ecx ret .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,206
ld/testsuite/ld-i386/got1d.S
.globl bar .type bar, @function bar: pushl %ebx call __x86.get_pc_thunk.cx addl $_GLOBAL_OFFSET_TABLE_, %ecx subl $24, %esp leal __FUNCTION__.1862@GOTOFF(%ecx), %eax movl %eax, (%esp) call *puts@GOT(%ecx) addl $24, %esp popl %ebx ret .size bar, .-bar .globl plt .type plt, @function plt: pushl %esi pushl %ebx call __x86.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $20, %esp leal __FUNCTION__.1866@GOTOFF(%ebx), %esi movl %esi, (%esp) call *puts@GOT(%ebx) addl $20, %esp popl %ebx popl %esi ret .section .rodata .type __FUNCTION__.1866, @object .size __FUNCTION__.1866, 4 __FUNCTION__.1866: .string "plt" .type __FUNCTION__.1862, @object .size __FUNCTION__.1862, 4 __FUNCTION__.1862: .string "bar" .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat .globl __x86.get_pc_thunk.bx .hidden __x86.get_pc_thunk.bx .type __x86.get_pc_thunk.bx, @function __x86.get_pc_thunk.bx: movl (%esp), %ebx ret .section .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat .globl __x86.get_pc_thunk.cx .hidden __x86.get_pc_thunk.cx .type __x86.get_pc_thunk.cx, @function __x86.get_pc_thunk.cx: movl (%esp), %ecx ret
tactcomplabs/xbgas-binutils-gdb
5,967
ld/testsuite/ld-x86-64/tlspic1.s
/* Force .data aligned to 4K, so .got very likely gets at 0x102190 (0x60 bytes .tdata and 0x130 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x1000. */ .text .balign 4096 .globl fn1 .type fn1,@function fn1: pushq %rbp movq %rsp, %rbp nop;nop;nop;nop /* GD */ .byte 0x66 leaq sg1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE because variable is referenced through IE too */ .byte 0x66 leaq sg2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD against local variable */ .byte 0x66 leaq sl1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE against local variable referenced through IE too */ .byte 0x66 leaq sl2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD against hidden and local variable */ .byte 0x66 leaq sh1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through IE too */ .byte 0x66 leaq sh2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD against hidden but not local variable */ .byte 0x66 leaq sH1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through IE too */ .byte 0x66 leaq sH2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* LD */ leaq sl1@tlsld(%rip), %rdi call __tls_get_addr@plt nop;nop leaq sl1@dtpoff(%rax), %rdx nop;nop leaq 2+sl2@dtpoff(%rax), %r9 nop;nop;nop;nop /* LD against hidden and local variables */ leaq sh1@tlsld(%rip), %rdi call __tls_get_addr@plt nop;nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq sh2@dtpoff+3(%rax), %rcx nop;nop;nop;nop /* LD against hidden but not local variables */ leaq sH1@tlsld(%rip), %rdi call __tls_get_addr@plt nop;nop leaq sH1@dtpoff(%rax), %r12 nop;nop leaq sH2@dtpoff+1(%rax), %rcx nop;nop /* IE against global var */ movq %fs:0, %rcx nop;nop addq sg2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against local var */ movq %fs:0, %r14 nop;nop addq sl2@gottpoff(%rip), %r14 nop;nop;nop;nop /* IE against hidden and local var */ movq %fs:0, %rcx nop;nop addq sh2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against hidden but not local var */ movq %fs:0, %rcx nop;nop addq sH2@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sg5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE against local var */ movq sl5@gottpoff(%rip), %r10 nop;nop movq %fs:(%r10), %r12 nop;nop;nop;nop /* IE against hidden and local var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop /* IE against hidden but not local var */ movq sH5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop 1: movabsq $_GLOBAL_OFFSET_TABLE_-1b, %r11 pushq %rbx pushq %rbx leaq 1b(%rip), %rbx addq %r11, %rbx nop;nop;nop;nop /* -mcmodel=large sequences */ /* -mcmodel=large GD */ leaq sg1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE because variable is referenced through IE too */ leaq sg2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against local variable */ leaq sl1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against local variable referenced through IE too */ leaq sl2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against hidden and local variable */ leaq sh1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against hidden and local variable referenced through IE too */ leaq sh2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against hidden but not local variable */ leaq sH1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against hidden but not local variable referenced through IE too */ leaq sH2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large LD */ leaq sl1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop leaq sl1@dtpoff(%rax), %rdx nop;nop leaq 2+sl2@dtpoff(%rax), %r9 nop;nop;nop;nop /* -mcmodel=large LD against hidden and local variables */ leaq sh1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq sh2@dtpoff+3(%rax), %rcx nop;nop;nop;nop /* -mcmodel=large LD against hidden but not local variables */ leaq sH1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %rbx, %rax call *%rax nop;nop leaq sH1@dtpoff(%rax), %r12 nop;nop leaq sH2@dtpoff+1(%rax), %rcx nop;nop;nop;nop popq %rbx popq %rbx leave ret
tactcomplabs/xbgas-binutils-gdb
2,191
ld/testsuite/ld-x86-64/protected-data-2b.S
.section .rodata.str1.8,"aMS",@progbits,1 .align 8 .LC0: .string "'protected_data_1a' in main and shared library doesn't have same address" .align 8 .LC1: .string "'protected_data_1a' in main and shared library doesn't have same value" .align 8 .LC2: .string "'protected_data_1b' in main and shared library has same address" .section .rodata.str1.1,"aMS",@progbits,1 .LC3: .string "PASS" .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB11: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 xorl %eax, %eax pushq %rbx .cfi_def_cfa_offset 24 .cfi_offset 3, -24 xorl %ebx, %ebx subq $8, %rsp .cfi_def_cfa_offset 32 call protected_data_1a_p movq protected_data_1a@GOTPCREL(%rip), %rbp cmpq %rbp, %rax je .L2 leaq .LC0(%rip), %rdi movb $1, %bl call puts .L2: movl $-1, %edi movl $-1, 0(%rbp) call check_protected_data_1a testl %eax, %eax jne .L17 .L3: movl $-3, %edi call set_protected_data_1a cmpl $-3, 0(%rbp) je .L4 leaq .LC1(%rip), %rdi movl $1, %ebx call puts .L4: xorl %eax, %eax call protected_data_1b_p leaq protected_data_1b(%rip), %rdx cmpq %rdx, %rax je .L18 .L5: movl $2, %edi movl $-10, protected_data_1b(%rip) call check_protected_data_1b testl %eax, %eax jne .L19 movl $-30, %edi call set_protected_data_1b cmpl $-10, protected_data_1b(%rip) je .L9 .L7: leaq .LC2(%rip), %rdi movl $1, %ebx call puts .L8: addq $8, %rsp .cfi_remember_state .cfi_def_cfa_offset 24 movl %ebx, %eax popq %rbx .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 ret .L9: .cfi_restore_state testl %ebx, %ebx jne .L11 leaq .LC3(%rip), %rdi call puts jmp .L8 .L19: leaq .LC2(%rip), %rdi call puts movl $-30, %edi call set_protected_data_1b cmpl $-10, protected_data_1b(%rip) jne .L7 .L11: movl $1, %ebx jmp .L8 .L17: leaq .LC1(%rip), %rdi movl $1, %ebx call puts jmp .L3 .L18: leaq .LC2(%rip), %rdi movl $1, %ebx call puts jmp .L5 .cfi_endproc .LFE11: .size main, .-main .globl protected_data_1b .data .align 4 .type protected_data_1b, @object .size protected_data_1b, 4 protected_data_1b: .long 3 .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,349
ld/testsuite/ld-x86-64/property-x86-3.s
.section ".note.gnu.property", "a" .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif .long 1f - 0f /* name length. */ .long 3f - 1f /* data length. */ /* NT_GNU_PROPERTY_TYPE_0 */ .long 5 /* note type. */ 0: .asciz "GNU" /* vendor name. */ 1: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_ISA_1_USED */ .long 0xc0010002 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0xa 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_ISA_1_NEEDED */ .long 0xc0008002 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0x3 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif 3: .section ".note.gnu.property", "a" .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif .long 1f - 0f /* name length. */ .long 3f - 1f /* data length. */ /* NT_GNU_PROPERTY_TYPE_0 */ .long 5 /* note type. */ 0: .asciz "GNU" /* vendor name. */ 1: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_ISA_1_USED */ .long 0xc0010002 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0xa0 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_ISA_1_NEEDED */ .long 0xc0008002 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0x30 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif 3:
tactcomplabs/xbgas-binutils-gdb
1,385
ld/testsuite/ld-x86-64/property-x86-6.s
.section ".note.gnu.property", "a" .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif .long 1f - 0f /* name length. */ .long 3f - 1f /* data length. */ /* NT_GNU_PROPERTY_TYPE_0 */ .long 5 /* note type. */ 0: .asciz "GNU" /* vendor name. */ 1: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED */ .long 0xc0010000 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0xa 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED */ .long 0xc0008000 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0x3 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif 3: .section ".note.gnu.property", "a" .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif .long 1f - 0f /* name length. */ .long 3f - 1f /* data length. */ /* NT_GNU_PROPERTY_TYPE_0 */ .long 5 /* note type. */ 0: .asciz "GNU" /* vendor name. */ 1: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED */ .long 0xc0010000 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0xa0 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif /* GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED */ .long 0xc0008000 /* pr_type. */ .long 5f - 4f /* pr_datasz. */ 4: .long 0x30 5: .ifdef __64_bit__ .p2align 3 .else .p2align 2 .endif 3:
tactcomplabs/xbgas-binutils-gdb
1,855
ld/testsuite/ld-x86-64/tlsbin.s
.section ".tbss", "awT", @nobits .globl bg1, bg2, bg3, bg4, bg5, bg6, bg7, bg8 bg1: .space 4 bg2: .space 4 bg3: .space 4 bg4: .space 4 bg5: .space 4 bg6: .space 4 bg7: .space 4 bg8: .space 4 bl1: .space 4 bl2: .space 4 bl3: .space 4 bl4: .space 4 bl5: .space 4 bl6: .space 4 bl7: .space 4 bl8: .space 4 .text .globl _start .type _start,@function _start: pushq %rbp movq %rsp, %rbp /* IE against global var */ movq %fs:0, %r11 nop;nop addq sG6@gottpoff(%rip), %r11 nop;nop;nop;nop /* IE -> LE against global var defined in exec */ movq %fs:0, %rdx nop;nop addq bg6@gottpoff(%rip), %rdx nop;nop;nop;nop /* IE -> LE against local var */ movq %fs:0, %r12 nop;nop addq bl6@gottpoff(%rip), %r12 nop;nop;nop;nop /* direct %fs access IE -> LE against local var */ movq bl8@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rax nop;nop;nop;nop /* IE -> LE against hidden but not local var */ movq %fs:0, %rdx nop;nop addq sh6@gottpoff(%rip), %rdx nop;nop;nop;nop /* direct %fs access IE -> LE against hidden but not local var */ movq sh8@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rax nop;nop;nop;nop /* LE, global var defined in exec */ movq %fs:0, %rax nop;nop leaq sg2@tpoff(%rax), %rdx nop;nop;nop;nop /* LE, local var, non-canonical sequence */ movq $2+bl2@tpoff, %r9 nop;nop movq %fs:0, %rdx nop;nop addq %r9, %rdx nop;nop;nop;nop /* LE, hidden var defined in exec, non-canonical sequence */ movq %fs:0, %rdx nop;nop addq $sh2@tpoff+1, %rdx nop;nop;nop;nop /* Direct %fs access */ /* LE, global var defined in exec */ movq %fs:sg3@tpoff, %rax nop;nop;nop;nop /* LE, local var */ movq %fs:bl3@tpoff+3, %r10 nop;nop;nop;nop /* LE, hidden var defined in exec */ movq %fs:1+sh3@tpoff, %rdx nop;nop;nop;nop /* LE, large model */ movabsq $sh2@tpoff+1, %rdx leave ret
tactcomplabs/xbgas-binutils-gdb
2,710
ld/testsuite/ld-x86-64/tlsbindesc.s
/* Force .data aligned to 4K, so that .got very likely gets at 0x5021a0 (0x60 bytes .tdata and 0x140 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x401000. */ .text .balign 4096 .globl fn2 .type fn2,@function fn2: pushq %rbp movq %rsp, %rbp /* GD -> IE because variable is not defined in executable */ leaq sG1@tlsdesc(%rip), %rax call *sG1@tlscall(%rax) nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through IE too */ leaq sG2@tlsdesc(%rip), %rax call *sG2@tlscall(%rax) nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ leaq sg1@tlsdesc(%rip), %rax call *sg1@tlscall(%rax) nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ leaq sl1@tlsdesc(%rip), %rax call *sl1@tlscall(%rax) nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ leaq sh1@tlsdesc(%rip), %rax call *sh1@tlscall(%rax) nop;nop;nop;nop /* LD -> LE */ leaq _TLS_MODULE_BASE_@tlsdesc(%rip), %rax call *_TLS_MODULE_BASE_@tlscall(%rax) nop;nop leaq 1+sl1@dtpoff(%rax), %rdx nop;nop leaq sl2@dtpoff+2(%rax), %r9 nop;nop;nop;nop /* LD -> LE against hidden variables */ leaq sh1@dtpoff(%rax), %rdx nop;nop leaq 3+sh2@dtpoff(%rax), %rcx nop;nop;nop;nop /* IE against global var */ movq %fs:0, %r9 nop;nop addq sG2@gottpoff(%rip), %r9 nop;nop;nop;nop /* IE -> LE against global var defined in exec */ movq %fs:0, %r10 nop;nop addq sg1@gottpoff(%rip), %r10 nop;nop;nop;nop /* IE -> LE against local var */ movq %fs:0, %rax nop;nop addq sl1@gottpoff(%rip), %rax nop;nop;nop;nop /* IE -> LE against hidden var */ movq %fs:0, %rcx nop;nop addq sh1@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sG5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE->LE against local var */ movq sl5@gottpoff(%rip), %r11 nop;nop movq %fs:(%r11), %r12 nop;nop;nop;nop /* IE->LE against hidden var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop leave ret
tactcomplabs/xbgas-binutils-gdb
2,971
ld/testsuite/ld-x86-64/tlsbinpic2.s
/* Force .data aligned to 4K, so that .got very likely gets at 0x5021a0 (0x60 bytes .tdata and 0x140 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x401000. */ .text .balign 4096 .globl fn2 .type fn2,@function fn2: pushq %rbp movq %rsp, %rbp /* GD -> IE because variable is not defined in executable */ .byte 0x66 leaq sG1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through IE too */ .byte 0x66 leaq sG2@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ .byte 0x66 leaq sg1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ .byte 0x66 leaq sl1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ .byte 0x66 leaq sh1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* LD -> LE */ leaq sl1@tlsld(%rip), %rdi call *__tls_get_addr@GOTPCREL(%rip) nop;nop leaq 1+sl1@dtpoff(%rax), %rdx nop;nop leaq sl2@dtpoff+2(%rax), %r9 nop;nop;nop;nop /* LD -> LE against hidden variables */ leaq sh1@tlsld(%rip), %rdi call *__tls_get_addr@GOTPCREL(%rip) nop;nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq 3+sh2@dtpoff(%rax), %rcx nop;nop;nop;nop /* IE against global var */ movq %fs:0, %r9 nop;nop addq sG2@gottpoff(%rip), %r9 nop;nop;nop;nop /* IE -> LE against global var defined in exec */ movq %fs:0, %r10 nop;nop addq sg1@gottpoff(%rip), %r10 nop;nop;nop;nop /* IE -> LE against local var */ movq %fs:0, %rax nop;nop addq sl1@gottpoff(%rip), %rax nop;nop;nop;nop /* IE -> LE against hidden var */ movq %fs:0, %rcx nop;nop addq sh1@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sG5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE->LE against local var */ movq sl5@gottpoff(%rip), %r11 nop;nop movq %fs:(%r11), %r12 nop;nop;nop;nop /* IE->LE against hidden var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop leave ret
tactcomplabs/xbgas-binutils-gdb
3,273
ld/testsuite/ld-x86-64/tlsdesc.s
/* Force .data aligned to 4K, so .got very likely gets at 0x102190 (0x60 bytes .tdata and 0x130 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x1000. */ .text .balign 4096 .globl fn1 .type fn1,@function fn1: pushq %rbp movq %rsp, %rbp nop;nop;nop;nop /* GD */ leaq sg1@tlsdesc(%rip), %rax call *sg1@tlscall(%rax) nop;nop;nop;nop /* GD -> IE because variable is referenced through IE too */ leaq sg2@tlsdesc(%rip), %rax call *sg2@tlscall(%rax) nop;nop;nop;nop /* GD against local variable */ leaq sl1@tlsdesc(%rip), %rax call *sl1@tlscall(%rax) nop;nop;nop;nop /* GD -> IE against local variable referenced through IE too */ leaq sl2@tlsdesc(%rip), %rax call *sl2@tlscall(%rax) nop;nop;nop;nop /* GD against hidden and local variable */ leaq sh1@tlsdesc(%rip), %rax call *sh1@tlscall(%rax) nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through IE too */ leaq sh2@tlsdesc(%rip), %rax call *sh2@tlscall(%rax) nop;nop;nop;nop /* GD against hidden but not local variable */ leaq sH1@tlsdesc(%rip), %rax call *sH1@tlscall(%rax) nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through IE too */ leaq sH2@tlsdesc(%rip), %rax call *sH2@tlscall(%rax) nop;nop;nop;nop /* LD */ leaq _TLS_MODULE_BASE_@tlsdesc(%rip), %rax call *_TLS_MODULE_BASE_@tlscall(%rax) nop;nop leaq sl1@dtpoff(%rax), %rdx nop;nop leaq 2+sl2@dtpoff(%rax), %r9 nop;nop;nop;nop /* LD against hidden and local variables */ leaq sh1@dtpoff(%rax), %rdx nop;nop leaq sh2@dtpoff+3(%rax), %rcx nop;nop;nop;nop /* LD against hidden but not local variables */ leaq sH1@dtpoff(%rax), %r12 nop;nop leaq sH2@dtpoff+1(%rax), %rcx nop;nop /* IE against global var */ movq %fs:0, %rcx nop;nop addq sg2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against local var */ movq %fs:0, %r14 nop;nop addq sl2@gottpoff(%rip), %r14 nop;nop;nop;nop /* IE against hidden and local var */ movq %fs:0, %rcx nop;nop addq sh2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against hidden but not local var */ movq %fs:0, %rcx nop;nop addq sH2@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sg5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE against local var */ movq sl5@gottpoff(%rip), %r10 nop;nop movq %fs:(%r10), %r12 nop;nop;nop;nop /* IE against hidden and local var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop /* IE against hidden but not local var */ movq sH5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop leave ret
tactcomplabs/xbgas-binutils-gdb
1,473
ld/testsuite/ld-x86-64/pr22071.s
.text .p2align 4,,15 .globl get_ld .type get_ld, @function get_ld: subq $8, %rsp leaq _TLS_MODULE_BASE_@TLSDESC(%rip), %rax call *_TLS_MODULE_BASE_@TLSCALL(%rax) addq $8, %rsp addq $ld@dtpoff, %rax addq %fs:0, %rax ret .size get_ld, .-get_ld .p2align 4,,15 .globl set_ld .type set_ld, @function set_ld: subq $8, %rsp leaq _TLS_MODULE_BASE_@TLSDESC(%rip), %rax call *_TLS_MODULE_BASE_@TLSCALL(%rax) movl %edi, %fs:ld@dtpoff(%rax) addq $8, %rsp ret .size set_ld, .-set_ld .p2align 4,,15 .globl test_ld .type test_ld, @function test_ld: subq $8, %rsp leaq _TLS_MODULE_BASE_@TLSDESC(%rip), %rax call *_TLS_MODULE_BASE_@TLSCALL(%rax) cmpl %edi, %fs:ld@dtpoff(%rax) sete %al addq $8, %rsp movzbl %al, %eax ret .size test_ld, .-test_ld .p2align 4,,15 .globl get_gd .type get_gd, @function get_gd: subq $8, %rsp leaq gd@TLSDESC(%rip), %rax call *gd@TLSCALL(%rax) addq $8, %rsp addq %fs:0, %rax ret .size get_gd, .-get_gd .p2align 4,,15 .globl set_gd .type set_gd, @function set_gd: subq $8, %rsp leaq gd@TLSDESC(%rip), %rax call *gd@TLSCALL(%rax) movl %edi, %fs:(%rax) addq $8, %rsp ret .size set_gd, .-set_gd .p2align 4,,15 .globl test_gd .type test_gd, @function test_gd: subq $8, %rsp leaq gd@TLSDESC(%rip), %rax call *gd@TLSCALL(%rax) cmpl %edi, %fs:(%rax) sete %al addq $8, %rsp movzbl %al, %eax ret .size test_gd, .-test_gd .section .tbss,"awT",@nobits .align 4 .type ld, @object .size ld, 4 ld: .zero 4
tactcomplabs/xbgas-binutils-gdb
1,814
ld/testsuite/ld-x86-64/tlsgdesc.s
.text .globl fc1 .type fc1,@function fc1: pushq %rbp movq %rsp, %rbp nop;nop;nop;nop /* IE against global var. */ movq %fs:0, %rcx nop;nop addq sG3@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against global var. */ movq %fs:0, %rcx nop;nop addq sG4@gottpoff(%rip), %rcx nop;nop;nop;nop /* GD, gd first. */ .byte 0x66 leaq sG1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop leaq sG1@tlsdesc(%rip), %rax call *sG1@tlscall(%rax) nop;nop;nop;nop /* GD, desc first. */ leaq sG2@tlsdesc(%rip), %rax call *sG2@tlscall(%rax) nop;nop;nop;nop .byte 0x66 leaq sG2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE, gd first, after IE use. */ .byte 0x66 leaq sG3@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop leaq sG3@tlsdesc(%rip), %rax call *sG3@tlscall(%rax) nop;nop;nop;nop /* GD -> IE, desc first, after IE use. */ leaq sG4@tlsdesc(%rip), %rax call *sG4@tlscall(%rax) nop;nop;nop;nop .byte 0x66 leaq sG4@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE, gd first, before IE use. */ .byte 0x66 leaq sG5@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop leaq sG5@tlsdesc(%rip), %rax call *sG5@tlscall(%rax) nop;nop;nop;nop /* GD -> IE, desc first, before IE use. */ leaq sG6@tlsdesc(%rip), %rax call *sG6@tlscall(%rax) nop;nop;nop;nop .byte 0x66 leaq sG6@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* IE against global var. */ movq %fs:0, %rcx nop;nop addq sG5@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against global var. */ movq %fs:0, %rcx nop;nop addq sG6@gottpoff(%rip), %rcx nop;nop;nop;nop leave ret
tactcomplabs/xbgas-binutils-gdb
1,247
ld/testsuite/ld-x86-64/pr20253-2d.S
.text .type implementation1, @function implementation1: movl $1, %eax ret .size implementation1, .-implementation1 .type implementation2, @function implementation2: movl $2, %eax ret .size implementation2, .-implementation2 .type resolver2, @function resolver2: leaq implementation2(%rip), %rax ret .size resolver2, .-resolver2 .type func2, @gnu_indirect_function .set func2,resolver2 .type resolver1, @function resolver1: leaq implementation1(%rip), %rax ret .size resolver1, .-resolver1 .globl func1 .type func1, @gnu_indirect_function .set func1,resolver1 .globl get_func2 .type get_func2, @function get_func2: movq func2@GOTPCREL(%rip), %rax ret .size get_func2, .-get_func2 .globl call_func2 .type call_func2, @function call_func2: subq $8, %rsp call *get_func2@GOTPCREL(%rip) cmpq func2@GOTPCREL(%rip), %rax jne .L10 addq $8, %rsp jmp *func2@GOTPCREL(%rip) .L10: call *abort@GOTPCREL(%rip) .size call_func2, .-call_func2 .globl func2_p #ifdef CHECK_PLT .section .rodata,"a",@progbits #else .section .data.rel,"aw",@progbits #endif #ifdef __LP64__ .align 8 .size func2_p, 8 #else .align 4 .size func2_p, 4 #endif .type func2_p, @object func2_p: .dc.a func2 .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
2,598
ld/testsuite/ld-x86-64/compressed1.s
.file "compressed1.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .cfi_sections .debug_frame .p2align 4,,15 .globl foo .type foo, @function foo: .LFB0: .file 1 "compressed1.c" .loc 1 12 0 .cfi_startproc .loc 1 13 0 jmp bar .cfi_endproc .LFE0: .size foo, .-foo .Letext0: .section .debug_info .long 0x6e .value 0x3 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF5 .byte 0x1 .long .LASF6 .long .LASF7 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .byte 0x6 .long .LASF0 .uleb128 0x2 .byte 0x2 .byte 0x5 .long .LASF1 .uleb128 0x3 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x2 .byte 0x8 .byte 0x5 .long .LASF2 .uleb128 0x2 .byte 0x1 .byte 0x8 .long .LASF3 .uleb128 0x2 .byte 0x2 .byte 0x7 .long .LASF4 .uleb128 0x4 .byte 0x1 .string "foo" .byte 0x1 .byte 0xb .quad .LFB0 .quad .LFE0 .byte 0x1 .byte 0x9c .byte 0x0 .section .debug_abbrev .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0x0 .byte 0x0 .uleb128 0x4 .uleb128 0x2e .byte 0x0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x16 .value 0x2 .long .Ldebug_info0 .long 0x72 .long 0x57 .string "foo" .long 0x0 .section .debug_pubtypes,"",@progbits .long 0xe .value 0x2 .long .Ldebug_info0 .long 0x72 .long 0x0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0x0 .value 0x0 .value 0x0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0x0 .quad 0x0 .section .debug_str,"MS",@progbits,1 .LASF0: .string "signed char" .LASF1: .string "short int" .LASF6: .string "compressed1.c" .LASF5: .string "GNU C 4.4.4" .LASF7: .string "." .LASF3: .string "unsigned char" .LASF2: .string "long int" .LASF4: .string "short unsigned int"
tactcomplabs/xbgas-binutils-gdb
2,447
ld/testsuite/ld-x86-64/dwarfreloc2.s
.file 1 "dwarfreloc2.c" .comm i2,4,4 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_info .Ldebug_info0: .long .Ldebug_info_end - .Ldebug_info_start .Ldebug_info_start: .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 /* DW_TAG_compile_unit */ .long .LASF0 /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .long .LASF1 /* DW_AT_name */ .long .LASF2 /* DW_AT_comp_dir */ .long .Ldebug_line0 /* DW_AT_stmt_list */ .uleb128 0x2 /* DW_TAG_variable */ .string "i2" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file */ .byte 0x1 /* DW_AT_decl_line */ /* DWARF3 Page 224 (236/267) <prefix>.<file-designator>.<gid-number>.<die-number> */ .quad .dwarfreloc1.0.2 /* DW_AT_type (DW_FORM_ref_addr) */ .byte 0x1 /* DW_AT_external */ .byte 0x9 /* DW_AT_location: length */ .byte 0x3 /* DW_AT_location: DW_OP_addr */ .quad i2 /* DW_AT_location: DW_OP_addr: address */ .byte 0x0 .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 /* DW_AT_producer */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x10 /* DW_FORM_ref_addr */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x24 /* DW_TAG_base_type */ .byte 0x0 .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_str,"MS",@progbits,1 .LASF1: .string "dwarfreloc2.c" .LASF0: .string "GNU C 4.3.1 20080801 (Red Hat 4.3.1-6)" .LASF2: .string "/" .ident "GCC: (GNU) 4.3.1 20080801 (Red Hat 4.3.1-6)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
2,318
ld/testsuite/ld-x86-64/undefined.s
.file "undefined.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .p2align 4,,15 .globl function .type function, @function function: .LFB2: .file 1 "undefined.c" .loc 1 8 0 .loc 1 9 0 xorl %eax, %eax jmp this_function_is_not_defined .LFE2: .size function, .-function .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -8 .byte 0x10 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE0: .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .quad .LFB2 .quad .LFE2-.LFB2 .align 8 .LEFDE0: .text .Letext0: .section .debug_info .long 0x4c .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .Ldebug_line0 .quad .Letext0 .quad .Ltext0 .long .LASF0 .byte 0x1 .long .LASF1 .uleb128 0x2 .byte 0x1 .long .LASF2 .byte 0x1 .byte 0x8 .long 0x48 .quad .LFB2 .quad .LFE2 .byte 0x2 .byte 0x77 .sleb128 8 .uleb128 0x3 .string "int" .byte 0x4 .byte 0x5 .byte 0x0 .section .debug_abbrev .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x10 .uleb128 0x6 .uleb128 0x12 .uleb128 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x2e .byte 0x0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x24 .byte 0x0 .uleb128 0x3 .uleb128 0x8 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x1b .value 0x2 .long .Ldebug_info0 .long 0x50 .long 0x29 .string "function" .long 0x0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0x0 .value 0x0 .value 0x0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0x0 .quad 0x0 .section .debug_str,"MS",@progbits,1 .LASF0: .string "GNU C 3.4.6" .LASF1: .string "undefined.c" .LASF2: .string "function"
tactcomplabs/xbgas-binutils-gdb
1,318
ld/testsuite/ld-x86-64/load1.s
.data .type bar, @object bar: .byte 1 .size bar, .-bar .globl foo .type foo, @object foo: .byte 1 .size foo, .-foo .text .globl _start .type _start, @function _start: adcl bar@GOTPCREL(%rip), %eax addl bar@GOTPCREL(%rip), %ebx andl bar@GOTPCREL(%rip), %ecx cmpl bar@GOTPCREL(%rip), %edx orl bar@GOTPCREL(%rip), %esi sbbl bar@GOTPCREL(%rip), %edi subl bar@GOTPCREL(%rip), %ebp xorl bar@GOTPCREL(%rip), %r8d testl %r15d, bar@GOTPCREL(%rip) adcq bar@GOTPCREL(%rip), %rax addq bar@GOTPCREL(%rip), %rbx andq bar@GOTPCREL(%rip), %rcx cmpq bar@GOTPCREL(%rip), %rdx orq bar@GOTPCREL(%rip), %rdi sbbq bar@GOTPCREL(%rip), %rsi subq bar@GOTPCREL(%rip), %rbp xorq bar@GOTPCREL(%rip), %r8 testq %r15, bar@GOTPCREL(%rip) adcl foo@GOTPCREL(%rip), %eax addl foo@GOTPCREL(%rip), %ebx andl foo@GOTPCREL(%rip), %ecx cmpl foo@GOTPCREL(%rip), %edx orl foo@GOTPCREL(%rip), %esi sbbl foo@GOTPCREL(%rip), %edi subl foo@GOTPCREL(%rip), %ebp xorl foo@GOTPCREL(%rip), %r8d testl %r15d, foo@GOTPCREL(%rip) adcq foo@GOTPCREL(%rip), %rax addq foo@GOTPCREL(%rip), %rbx andq foo@GOTPCREL(%rip), %rcx cmpq foo@GOTPCREL(%rip), %rdx orq foo@GOTPCREL(%rip), %rdi sbbq foo@GOTPCREL(%rip), %rsi subq foo@GOTPCREL(%rip), %rbp xorq foo@GOTPCREL(%rip), %r8 testq %r15, foo@GOTPCREL(%rip) .size _start, .-_start
tactcomplabs/xbgas-binutils-gdb
1,593
ld/testsuite/ld-x86-64/protected-func-2b.S
.text .p2align 4 .globl protected_func_1b .type protected_func_1b, @function protected_func_1b: .LFB11: .cfi_startproc movl $3, %eax ret .cfi_endproc .LFE11: .size protected_func_1b, .-protected_func_1b .section .rodata.str1.8,"aMS",@progbits,1 .align 8 .LC0: .string "'protected_func_1a' in main and shared library doesn't have same address" .align 8 .LC1: .string "'protected_func_1a' doesn't return the correct value" .align 8 .LC2: .string "'protected_func_1b' in main and shared library has same address" .section .rodata.str1.1,"aMS",@progbits,1 .LC3: .string "PASS" .section .text.startup,"ax",@progbits .p2align 4 .globl main .type main, @function main: .LFB12: .cfi_startproc pushq %r12 .cfi_def_cfa_offset 16 .cfi_offset 12, -16 xorl %r12d, %r12d call protected_func_1a_p cmpq protected_func_1a@GOTPCREL(%rip), %rax je .L4 leaq .LC0(%rip), %rdi movl $1, %r12d call puts .L4: call protected_func_1a cmpl $1, %eax jne .L13 call protected_func_1b_p leaq protected_func_1b(%rip), %rdx cmpq %rax, %rdx je .L6 testl %r12d, %r12d jne .L12 leaq .LC3(%rip), %rdi call puts movl %r12d, %eax popq %r12 .cfi_remember_state .cfi_def_cfa_offset 8 ret .L13: .cfi_restore_state leaq .LC1(%rip), %rdi call puts call protected_func_1b_p leaq protected_func_1b(%rip), %rdx cmpq %rax, %rdx je .L6 .L12: movl $1, %r12d movl %r12d, %eax popq %r12 .cfi_remember_state .cfi_def_cfa_offset 8 ret .L6: .cfi_restore_state leaq .LC2(%rip), %rdi call puts jmp .L12 .cfi_endproc .LFE12: .size main, .-main .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,160
ld/testsuite/ld-x86-64/pr21481b.S
.section .rodata.foo,"aMS",@progbits,1,unique,1 .LC0: .string "PASS" .text .globl check .type check, @function check: subq $8, %rsp call *get_func1@GOTPCREL(%rip) cmpl $func1, %eax jne .L3 movq func1_p@GOTPCREL(%rip), %rdx #ifdef __LP64__ cmpq %rax, (%rdx) #else cmpl %eax, (%rdx) #endif jne .L3 call *func1@GOTPCREL(%rip) cmpl $1, %eax jne .L3 call *call_func1@GOTPCREL(%rip) cmpl $1, %eax jne .L3 leaq .LC0(%rip), %rdi addq $8, %rsp jmp *puts@GOTPCREL(%rip) .L3: call *abort@GOTPCREL(%rip) .size check, .-check .globl get_func1 .type get_func1, @function get_func1: movq func1@GOTPCREL(%rip), %rax ret .size get_func1, .-get_func1 .globl call_func1 .type call_func1, @function call_func1: jmp *func1@GOTPCREL(%rip) .size call_func1, .-call_func1 .globl func1_p .section .rodata.foo,"a",@progbits,unique,2 .align 8 .size func1_p, 8 .type func1_p, @object func1_p: .dc.a func1 .text implementation1: movl $1, %eax ret .size implementation1, .-implementation1 .globl func1 .type func1, @gnu_indirect_function func1: leaq implementation1(%rip), %rax ret .size func1, .-func1 .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
2,637
ld/testsuite/ld-x86-64/dwarfreloc1.s
.file 1 "dwarfreloc1.c" .comm i1,4,4 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_info .Ldebug_info0: .long .Ldebug_info_end - .Ldebug_info_start .Ldebug_info_start: .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 /* DW_TAG_compile_unit */ .long .LASF0 /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .long .LASF1 /* DW_AT_name */ .long .LASF2 /* DW_AT_comp_dir */ .long .Ldebug_line0 /* DW_AT_stmt_list */ .uleb128 0x2 /* DW_TAG_variable */ .string "i1" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file */ .byte 0x1 /* DW_AT_decl_line */ .long .dwarfreloc1.0.2 - .Ldebug_info0 /* DW_AT_type (DW_FORM_ref4) */ .byte 0x1 /* DW_AT_external */ .byte 0x9 /* DW_AT_location: length */ .byte 0x3 /* DW_AT_location: DW_OP_addr */ .quad i1 /* DW_AT_location: DW_OP_addr: address */ /* DWARF3 Page 224 (236/267) <prefix>.<file-designator>.<gid-number>.<die-number> */ .globl .dwarfreloc1.0.2 .dwarfreloc1.0.2: .uleb128 0x3 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .string "int" /* DW_AT_name */ .byte 0x0 .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 /* DW_AT_producer */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x24 /* DW_TAG_base_type */ .byte 0x0 .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_str,"MS",@progbits,1 .LASF1: .string "dwarfreloc1.c" .LASF0: .string "GNU C 4.3.1 20080801 (Red Hat 4.3.1-6)" .LASF2: .string "/" .ident "GCC: (GNU) 4.3.1 20080801 (Red Hat 4.3.1-6)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,678
ld/testsuite/ld-x86-64/32bit.s
.section .rodata.str1.1,"aMS",@progbits,1 .LC0: .word 1 .LC1: .word 2 .LC2: .word 3 .LC3: .word 4 .LC4: .word 5 .LC5: .word 6 .LC6: .word 7 .LC7: .word 8 .LC8: .word 9 .LC9: .word 10 .LC10: .word 11 .LC11: .word 12 .LC12: .word 13 .LC13: .word 14 .LC14: .word 15 .LC15: .word 16 .LC16: .word 17 .LC17: .word 18 .LC18: .word 19 .LC19: .word 20 .LC20: .word 21 .LC21: .word 22 .LC22: .word 23 .LC23: .word 24 .LC24: .word 25 .LC25: .word 26 .LC26: .word 27 .LC27: .word 28 .LC28: .word 29 .LC29: .word 30 .LC30: .word 31 .LC31: .word 32 .LC32: .word 33 .LC33: .word 34 .text .p2align 4,,15 .globl foo .type foo, @function foo: leal .LC0@GOTOFF(%ecx), %eax leal .LC1@GOTOFF(%ecx), %eax leal .LC2@GOTOFF(%ecx), %eax leal .LC3@GOTOFF(%ecx), %eax leal .LC4@GOTOFF(%ecx), %eax leal .LC5@GOTOFF(%ecx), %eax leal .LC6@GOTOFF(%ecx), %eax leal .LC7@GOTOFF(%ecx), %eax leal .LC8@GOTOFF(%ecx), %eax leal .LC9@GOTOFF(%ecx), %eax leal .LC10@GOTOFF(%ecx), %eax leal .LC11@GOTOFF(%ecx), %eax leal .LC12@GOTOFF(%ecx), %eax leal .LC13@GOTOFF(%ecx), %eax leal .LC14@GOTOFF(%ecx), %eax leal .LC15@GOTOFF(%ecx), %eax leal .LC16@GOTOFF(%ecx), %eax leal .LC17@GOTOFF(%ecx), %eax leal .LC18@GOTOFF(%ecx), %eax leal .LC19@GOTOFF(%ecx), %eax leal .LC20@GOTOFF(%ecx), %eax leal .LC21@GOTOFF(%ecx), %eax leal .LC22@GOTOFF(%ecx), %eax leal .LC23@GOTOFF(%ecx), %eax leal .LC24@GOTOFF(%ecx), %eax leal .LC25@GOTOFF(%ecx), %eax leal .LC26@GOTOFF(%ecx), %eax leal .LC27@GOTOFF(%ecx), %eax leal .LC28@GOTOFF(%ecx), %eax leal .LC29@GOTOFF(%ecx), %eax leal .LC30@GOTOFF(%ecx), %eax leal .LC31@GOTOFF(%ecx), %eax leal .LC32@GOTOFF(%ecx), %eax leal .LC33@GOTOFF(%ecx), %eax
tactcomplabs/xbgas-binutils-gdb
2,897
ld/testsuite/ld-x86-64/tlsbinpic.s
/* Force .data aligned to 4K, so that .got very likely gets at 0x5021a0 (0x60 bytes .tdata and 0x140 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x401000. */ .text .balign 4096 .globl fn2 .type fn2,@function fn2: pushq %rbp movq %rsp, %rbp /* GD -> IE because variable is not defined in executable */ .byte 0x66 leaq sG1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through IE too */ .byte 0x66 leaq sG2@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ .byte 0x66 leaq sg1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ .byte 0x66 leaq sl1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ .byte 0x66 leaq sh1@tlsgd(%rip), %rdi .word 0x6666 rex64 call __tls_get_addr@plt nop;nop;nop;nop /* LD -> LE */ leaq sl1@tlsld(%rip), %rdi call __tls_get_addr@plt nop;nop leaq 1+sl1@dtpoff(%rax), %rdx nop;nop leaq sl2@dtpoff+2(%rax), %r9 nop;nop;nop;nop /* LD -> LE against hidden variables */ leaq sh1@tlsld(%rip), %rdi call __tls_get_addr@plt nop;nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq 3+sh2@dtpoff(%rax), %rcx nop;nop;nop;nop /* IE against global var */ movq %fs:0, %r9 nop;nop addq sG2@gottpoff(%rip), %r9 nop;nop;nop;nop /* IE -> LE against global var defined in exec */ movq %fs:0, %r10 nop;nop addq sg1@gottpoff(%rip), %r10 nop;nop;nop;nop /* IE -> LE against local var */ movq %fs:0, %rax nop;nop addq sl1@gottpoff(%rip), %rax nop;nop;nop;nop /* IE -> LE against hidden var */ movq %fs:0, %rcx nop;nop addq sh1@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sG5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE->LE against local var */ movq sl5@gottpoff(%rip), %r11 nop;nop movq %fs:(%r11), %r12 nop;nop;nop;nop /* IE->LE against hidden var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop leave ret
tactcomplabs/xbgas-binutils-gdb
6,055
ld/testsuite/ld-x86-64/tlspic3.s
/* Force .data aligned to 4K, so .got very likely gets at 0x102190 (0x60 bytes .tdata and 0x130 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 /* Force .text aligned to 4K, so it very likely gets at 0x1000. */ .text .balign 4096 .globl fn1 .type fn1,@function fn1: pushq %rbp movq %rsp, %rbp nop;nop;nop;nop /* GD */ .byte 0x66 leaq sg1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> IE because variable is referenced through IE too */ .byte 0x66 leaq sg2@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD against local variable */ .byte 0x66 leaq sl1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> IE against local variable referenced through IE too */ .byte 0x66 leaq sl2@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD against hidden and local variable */ .byte 0x66 leaq sh1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through IE too */ .byte 0x66 leaq sh2@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD against hidden but not local variable */ .byte 0x66 leaq sH1@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through IE too */ .byte 0x66 leaq sH2@tlsgd(%rip), %rdi .byte 0x66 rex64 call *__tls_get_addr@GOTPCREL(%rip) nop;nop;nop;nop /* LD */ leaq sl1@tlsld(%rip), %rdi call *__tls_get_addr@GOTPCREL(%rip) nop leaq sl1@dtpoff(%rax), %rdx nop;nop leaq 2+sl2@dtpoff(%rax), %r9 nop;nop;nop;nop /* LD against hidden and local variables */ leaq sh1@tlsld(%rip), %rdi call *__tls_get_addr@GOTPCREL(%rip) nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq sh2@dtpoff+3(%rax), %rcx nop;nop;nop;nop /* LD against hidden but not local variables */ leaq sH1@tlsld(%rip), %rdi call *__tls_get_addr@GOTPCREL(%rip) nop leaq sH1@dtpoff(%rax), %r12 nop;nop leaq sH2@dtpoff+1(%rax), %rcx nop;nop /* IE against global var */ movq %fs:0, %rcx nop;nop addq sg2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against local var */ movq %fs:0, %r14 nop;nop addq sl2@gottpoff(%rip), %r14 nop;nop;nop;nop /* IE against hidden and local var */ movq %fs:0, %rcx nop;nop addq sh2@gottpoff(%rip), %rcx nop;nop;nop;nop /* IE against hidden but not local var */ movq %fs:0, %rcx nop;nop addq sH2@gottpoff(%rip), %rcx nop;nop;nop;nop /* Direct access through %fs */ /* IE against global var */ movq sg5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop /* IE against local var */ movq sl5@gottpoff(%rip), %r10 nop;nop movq %fs:(%r10), %r12 nop;nop;nop;nop /* IE against hidden and local var */ movq sh5@gottpoff(%rip), %rdx nop;nop movq %fs:(%rdx), %rdx nop;nop;nop;nop /* IE against hidden but not local var */ movq sH5@gottpoff(%rip), %rcx nop;nop movq %fs:(%rcx), %rdx nop;nop;nop;nop 1: movabsq $_GLOBAL_OFFSET_TABLE_-1b, %r11 pushq %r15 pushq %r15 leaq 1b(%rip), %r15 addq %r11, %r15 nop;nop /* -mcmodel=large sequences */ /* -mcmodel=large GD */ leaq sg1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE because variable is referenced through IE too */ leaq sg2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against local variable */ leaq sl1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against local variable referenced through IE too */ leaq sl2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against hidden and local variable */ leaq sh1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against hidden and local variable referenced through IE too */ leaq sh2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD against hidden but not local variable */ leaq sH1@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large GD -> IE against hidden but not local variable referenced through IE too */ leaq sH2@tlsgd(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop;nop;nop /* -mcmodel=large LD */ leaq sl1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop leaq sl1@dtpoff(%rax), %rdx nop;nop leaq 2+sl2@dtpoff(%rax), %r9 nop;nop;nop;nop /* -mcmodel=large LD against hidden and local variables */ leaq sh1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop leaq sh1@dtpoff(%rax), %rdx nop;nop leaq sh2@dtpoff+3(%rax), %rcx nop;nop;nop;nop /* -mcmodel=large LD against hidden but not local variables */ leaq sH1@tlsld(%rip), %rdi movabsq $__tls_get_addr@pltoff, %rax addq %r15, %rax call *%rax nop;nop leaq sH1@dtpoff(%rax), %r12 nop;nop leaq sH2@dtpoff+1(%rax), %rcx nop;nop popq %r15 popq %r15 leave ret
tactcomplabs/xbgas-binutils-gdb
2,323
ld/testsuite/ld-x86-64/protected-data-2a.S
.text .p2align 4 .protected protected_data_1a .globl protected_data_1a_p .type protected_data_1a_p, @function protected_data_1a_p: .LFB0: .cfi_startproc leaq protected_data_1a(%rip), %rax ret .cfi_endproc .LFE0: .size protected_data_1a_p, .-protected_data_1a_p .p2align 4 .protected protected_data_1b .globl protected_data_1b_p .type protected_data_1b_p, @function protected_data_1b_p: .LFB1: .cfi_startproc leaq protected_data_1b(%rip), %rax ret .cfi_endproc .LFE1: .size protected_data_1b_p, .-protected_data_1b_p .p2align 4 .globl set_protected_data_1a .type set_protected_data_1a, @function set_protected_data_1a: .LFB2: .cfi_startproc movl %edi, protected_data_1a(%rip) ret .cfi_endproc .LFE2: .size set_protected_data_1a, .-set_protected_data_1a .p2align 4 .globl set_protected_data_1b .type set_protected_data_1b, @function set_protected_data_1b: .LFB3: .cfi_startproc movl %edi, protected_data_1b(%rip) ret .cfi_endproc .LFE3: .size set_protected_data_1b, .-set_protected_data_1b .p2align 4 .globl check_protected_data_1a .type check_protected_data_1a, @function check_protected_data_1a: .LFB4: .cfi_startproc xorl %eax, %eax cmpl %edi, protected_data_1a(%rip) setne %al ret .cfi_endproc .LFE4: .size check_protected_data_1a, .-check_protected_data_1a .p2align 4 .globl check_protected_data_1b .type check_protected_data_1b, @function check_protected_data_1b: .LFB5: .cfi_startproc xorl %eax, %eax cmpl %edi, protected_data_1b(%rip) setne %al ret .cfi_endproc .LFE5: .size check_protected_data_1b, .-check_protected_data_1b .globl protected_data_1b .data .align 4 .type protected_data_1b, @object .size protected_data_1b, 4 protected_data_1b: .long 2 .globl protected_data_1a .align 4 .type protected_data_1a, @object .size protected_data_1a, 4 protected_data_1a: .long 1 .section .note.GNU-stack,"",@progbits #ifdef USE_GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS # ifdef __LP64__ # define ALIGN 3 # else # define ALIGN 2 # endif .section ".note.gnu.property", "a" .p2align ALIGN .long 1f - 0f /* name length */ .long 5f - 2f /* data length */ .long 5 /* note type */ 0: .asciz "GNU" /* vendor name */ 1: .p2align ALIGN 2: .long 0xb0008000 /* pr_type. */ .long 4f - 3f /* pr_datasz. */ 3: .long 0x1 4: .p2align ALIGN 5: #endif
tactcomplabs/xbgas-binutils-gdb
1,350
ld/testsuite/ld-x86-64/protected-func-2a.S
.text .p2align 4 .protected protected_func_1a .globl protected_func_1a .type protected_func_1a, @function protected_func_1a: .LFB0: .cfi_startproc movl $1, %eax ret .cfi_endproc .LFE0: .size protected_func_1a, .-protected_func_1a .p2align 4 .protected protected_func_1b .globl protected_func_1b .type protected_func_1b, @function protected_func_1b: .LFB1: .cfi_startproc movl $2, %eax ret .cfi_endproc .LFE1: .size protected_func_1b, .-protected_func_1b .p2align 4 .globl protected_func_1a_p .type protected_func_1a_p, @function protected_func_1a_p: .LFB2: .cfi_startproc leaq protected_func_1a(%rip), %rax ret .cfi_endproc .LFE2: .size protected_func_1a_p, .-protected_func_1a_p .p2align 4 .globl protected_func_1b_p .type protected_func_1b_p, @function protected_func_1b_p: .LFB3: .cfi_startproc leaq protected_func_1b(%rip), %rax ret .cfi_endproc .LFE3: .size protected_func_1b_p, .-protected_func_1b_p .section .note.GNU-stack,"",@progbits #ifdef __LP64__ # define ALIGN 3 #else # define ALIGN 2 #endif .section ".note.gnu.property", "a" .p2align ALIGN .long 1f - 0f /* name length */ .long 5f - 2f /* data length */ .long 5 /* note type */ 0: .asciz "GNU" /* vendor name */ 1: .p2align ALIGN 2: .long 0xb0008000 /* pr_type. */ .long 4f - 3f /* pr_datasz. */ 3: .long 0x1 4: .p2align ALIGN 5:
tactcomplabs/xbgas-binutils-gdb
1,199
ld/testsuite/ld-msp430-elf/main-with-data-bss.s
.file "main-with-data-bss.c" .global glob_var_array .data .balign 2 .type glob_var_array, @object .size glob_var_array, 20 glob_var_array: .short 0 .short 1 .short 2 .short 3 .short 4 .short 5 .short 6 .short 7 .short 8 .short 9 .local glob_bss_array .comm glob_bss_array,20,2 .text .balign 2 .global main .type main, @function main: ; start of function ; framesize_regs: 0 ; framesize_locals: 2 ; framesize_outgoing: 0 ; framesize: 2 ; elim ap -> fp 2 ; elim fp -> sp 2 ; saved regs:(none) ; start of prologue SUB.W #2, R1 ; end of prologue MOV.W #0, @R1 BR #.L2 .L7: MOV.W @R1, R12 ADD.W R12, R12 ADD.W #glob_var_array, R12 MOV.W @R12, R13 MOV.W R13, R12 ADD.W R12, R12 ADD.W R13, R12 rpt #2 { rlax.w R12 SUB.W R13, R12 CMP.W #110, R12 { JNE .L3 .L4: BR #.L4 .L3: MOV.W @R1, R12 ADD.W R12, R12 ADD.W #glob_bss_array, R12 MOV.W @R12, R13 MOV.W R13, R12 ADD.W R12, R12 ADD.W R13, R12 rpt #2 { rlax.w R12 SUB.W R13, R12 CMP.W #110, R12 { JNE .L5 .L6: BR #.L6 .L5: ADD.W #1, @R1 .L2: MOV.B #9, R12 CMP.W @R1, R12 { JGE .L7 MOV.B #0, R12 ; start of epilogue .refsym __crt0_call_exit ADD.W #2, R1 RET .size main, .-main
tactcomplabs/xbgas-binutils-gdb
1,027
ld/testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s
.file "main-with-text-rodata.c" .global glob_const_array .section .rodata.glob_const_array,"a",@progbits .balign 2 .type glob_const_array, @object .size glob_const_array, 20 glob_const_array: .short 0 .short 1 .short 2 .short 3 .short 4 .short 5 .short 6 .short 7 .short 8 .short 9 .section .text.main,"ax",@progbits .balign 2 .global main .type main, @function main: ; start of function ; framesize_regs: 0 ; framesize_locals: 2 ; framesize_outgoing: 0 ; framesize: 2 ; elim ap -> fp 2 ; elim fp -> sp 2 ; saved regs:(none) ; start of prologue SUB.W #2, R1 ; end of prologue MOV.W #0, @R1 BR #.L2 .L5: MOV.W @R1, R12 ADD.W R12, R12 ADD.W #glob_const_array, R12 MOV.W @R12, R13 MOV.W R13, R12 ADD.W R12, R12 ADD.W R13, R12 rpt #2 { rlax.w R12 SUB.W R13, R12 CMP.W #110, R12 { JNE .L3 .L4: BR #.L4 .L3: ADD.W #1, @R1 .L2: MOV.B #9, R12 CMP.W @R1, R12 { JGE .L5 MOV.B #0, R12 ; start of epilogue .refsym __crt0_call_exit ADD.W #2, R1 RET .size main, .-main
tactcomplabs/xbgas-binutils-gdb
1,356
ld/testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s
.file "main-with-data-bss.c" .global glob_var_array .section .data.glob_var_array,"aw",@progbits .balign 2 .type glob_var_array, @object .size glob_var_array, 20 glob_var_array: .short 0 .short 1 .short 2 .short 3 .short 4 .short 5 .short 6 .short 7 .short 8 .short 9 .section .bss.glob_bss_array,"aw",@nobits .balign 2 .type glob_bss_array, @object .size glob_bss_array, 20 glob_bss_array: .zero 20 .section .text.main,"ax",@progbits .balign 2 .global main .type main, @function main: ; start of function ; framesize_regs: 0 ; framesize_locals: 2 ; framesize_outgoing: 0 ; framesize: 2 ; elim ap -> fp 2 ; elim fp -> sp 2 ; saved regs:(none) ; start of prologue SUB.W #2, R1 ; end of prologue MOV.W #0, @R1 BR #.L2 .L7: MOV.W @R1, R12 ADD.W R12, R12 ADD.W #glob_var_array, R12 MOV.W @R12, R13 MOV.W R13, R12 ADD.W R12, R12 ADD.W R13, R12 rpt #2 { rlax.w R12 SUB.W R13, R12 CMP.W #110, R12 { JNE .L3 .L4: BR #.L4 .L3: MOV.W @R1, R12 ADD.W R12, R12 ADD.W #glob_bss_array, R12 MOV.W @R12, R13 MOV.W R13, R12 ADD.W R12, R12 ADD.W R13, R12 rpt #2 { rlax.w R12 SUB.W R13, R12 CMP.W #110, R12 { JNE .L5 .L6: BR #.L6 .L5: ADD.W #1, @R1 .L2: MOV.B #9, R12 CMP.W @R1, R12 { JGE .L7 MOV.B #0, R12 ; start of epilogue .refsym __crt0_call_exit ADD.W #2, R1 RET .size main, .-main
tactcomplabs/xbgas-binutils-gdb
1,327
ld/testsuite/ld-avr/per-function-debugline.s
.file "per-function-debugline.s" __SP_H__ = 0x3e __SP_L__ = 0x3d __SREG__ = 0x3f __RAMPZ__ = 0x3b __tmp_reg__ = 0 __zero_reg__ = 1 .comm g,2,1 .section .text.bar,"ax",@progbits .global bar .type bar, @function bar: push r28 push r29 rcall . in r28,__SP_L__ in r29,__SP_H__ /* prologue: function */ /* frame size = 2 */ /* stack size = 4 */ .L__stack_usage = 4 ldd r24,Y+1 ldd r25,Y+2 adiw r24,1 std Y+2,r25 std Y+1,r24 nop /* epilogue start */ pop __tmp_reg__ pop __tmp_reg__ pop r29 pop r28 ret .size bar, .-bar .section .text.foo,"ax",@progbits .global foo .type foo, @function foo: push r28 push r29 in r28,__SP_L__ in r29,__SP_H__ /* prologue: function */ /* frame size = 0 */ /* stack size = 2 */ .L__stack_usage = 2 lds r24,g lds r25,g+1 adiw r24,1 sts g+1,r25 sts g,r24 nop /* epilogue start */ pop r29 pop r28 ret .size foo, .-foo .section .text.main,"ax",@progbits .global main .type main, @function main: push r28 push r29 in r28,__SP_L__ in r29,__SP_H__ /* prologue: function */ /* frame size = 0 */ /* stack size = 2 */ .L__stack_usage = 2 call foo lds r24,g lds r25,g+1 sbiw r24,1 sts g+1,r25 sts g,r24 lds r24,g lds r25,g+1 /* epilogue start */ pop r29 pop r28 ret .size main, .-main .ident "GCC: (GNU) 6.0.0 20150630 (experimental)" .global __do_clear_bss
tactcomplabs/xbgas-binutils-gdb
1,183
ld/testsuite/ld-avr/relax-02.s
.section ".text", "ax",@progbits .global _start, dest, end_label .global func_1, func_2, func_3 _start: local_start: nop nop nop nop nop .type _start, @function .size _start, .-_start .type local_start, @function .size local_start, .-local_start func_1: local_func_1: nop nop nop nop nop .type func_1, @function .size func_1, .-func_1 .type local_func_1, @function .size local_func_1, .-local_func_1 func_2: local_func_2: nop jmp dest jmp dest jmp dest nop .type func_2, @function .size func_2, .-func_2 .type local_func_2, @function .size local_func_2, .-local_func_2 func_3: local_func_3: nop nop nop nop nop .type func_3, @function .size func_3, .-func_3 .type local_func_3, @function .size local_func_3, .-local_func_3 dest: nop nop nop nop nop end_label: local_end_label:
tactcomplabs/xbgas-binutils-gdb
1,253
ld/testsuite/ld-cris/pcrelcp-1.s
.symver x,expfn@TST2 ; .symver required to make @ part of name. .global _start .type _start,@function _start: .dword 0,0,0,0 .reloc 0,R_CRIS_32_PCREL,expfn .reloc 4,R_CRIS_32_PCREL,expfn .reloc 8,R_CRIS_32_PCREL,x .reloc 12,R_CRIS_32_PCREL,x .Lfe3: .size _start,.Lfe3-_start .data .global tab1 .type tab1,@object tab1: .dword 0,0,0,0,0,0,0,0 .reloc 0,R_CRIS_32_PCREL,expfn .reloc 4,R_CRIS_32_PCREL,expfn .reloc 8,R_CRIS_32_PCREL,expfn .reloc 12,R_CRIS_32_PCREL,expfn .reloc 16,R_CRIS_32_PCREL,x .reloc 20,R_CRIS_32_PCREL,x .reloc 24,R_CRIS_32_PCREL,x .reloc 28,R_CRIS_32_PCREL,x .size tab1,.-tab1 .section .data2,"aw",@progbits .global tab2 .type tab2,@object tab2: .dword 0,0,0,0,0,0,0,0 .dword 0,0,0,0,0,0,0,0 .reloc 0,R_CRIS_32_PCREL,expfn .reloc 4,R_CRIS_32_PCREL,expfn .reloc 8,R_CRIS_32_PCREL,expfn .reloc 12,R_CRIS_32_PCREL,expfn .reloc 16,R_CRIS_32_PCREL,expfn .reloc 20,R_CRIS_32_PCREL,expfn .reloc 24,R_CRIS_32_PCREL,expfn .reloc 28,R_CRIS_32_PCREL,expfn .reloc 32,R_CRIS_32_PCREL,x .reloc 36,R_CRIS_32_PCREL,x .reloc 40,R_CRIS_32_PCREL,x .reloc 44,R_CRIS_32_PCREL,x .reloc 48,R_CRIS_32_PCREL,x .reloc 52,R_CRIS_32_PCREL,x .reloc 56,R_CRIS_32_PCREL,x .reloc 60,R_CRIS_32_PCREL,x .size tab1,.-tab2
tactcomplabs/xbgas-binutils-gdb
2,159
ld/testsuite/ld-ia64/tlspic1.s
/* Force .data aligned to 4K, so .got very likely gets at 0x13190 (0x60 bytes .tdata and 0x130 bytes .dynamic) */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 .explicit .pred.safe_across_calls p1-p5,p16-p63 /* Force .text aligned to 4K, so it very likely gets at 0x1000. */ .text .balign 4096 .globl fn1# .proc fn1# fn1: .prologue 12, 33 .mib .save ar.pfs, r34 alloc r34 = ar.pfs, 0, 3, 2, 0 .save rp, r33 mov r33 = b0 /* GD */ addl r14 = @ltoff(@dtpmod(sg1#)), gp addl r15 = @ltoff(@dtprel(sg1#)), gp ;; ld8 out0 = [r14] ld8 out1 = [r15] br.call.sptk.many b0 = __tls_get_addr# ;; /* GD against hidden symbol */ addl r14 = @ltoff(@dtpmod(sh2#)), gp addl r15 = @ltoff(@dtprel(sh2#)), gp ;; ld8 out0 = [r14] ld8 out1 = [r15] br.call.sptk.many b0 = __tls_get_addr# ;; /* LD */ addl r14 = @ltoff(@dtpmod(sl1#)), gp addl out1 = @dtprel(sl1#) + 1, r0 ;; ld8 out0 = [r14] br.call.sptk.many b0 = __tls_get_addr# ;; /* LD with 4 variables variables */ addl r14 = @ltoff(@dtpmod(sh1#)), gp mov out1 = r0 ;; ld8 out0 = [r14] br.call.sptk.many b0 = __tls_get_addr# ;; mov r2 = r8 ;; addl r14 = @dtprel(sh1#), r2 addl r15 = @dtprel(sH1#) + 2, r2 ;; adds r14 = @dtprel(sh5#) + 3, r8 movl r15 = @dtprel(sH5#) + 1 ;; add r15 = r15, r8 ;; /* IE against global */ addl r14 = @ltoff(@tprel(sg2#)), gp ;; ld8 r15 = [r14] ;; add r14 = r15, r13 ;; /* IE against local and hidden */ addl r14 = @ltoff(@tprel(sl2#)), gp addl r15 = @ltoff(@tprel(sh2#)), gp ;; ld8 r14 = [r14] ld8 r15 = [r15] ;; add r14 = r14, r13 add r15 = r15, r13 ;; mov ar.pfs = r34 mov b0 = r33 br.ret.sptk.many b0 .endp fn1#
tactcomplabs/xbgas-binutils-gdb
2,404
ld/testsuite/ld-ia64/undefined.s
.file "undefined.c" .pred.safe_across_calls p1-p5,p16-p63 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .align 16 .global function# .proc function# function: [.LFB2:] .file 1 "undefined.c" .loc 1 8 0 .prologue 12, 32 .mii .save ar.pfs, r33 alloc r33 = ar.pfs, 0, 3, 0, 0 .save rp, r32 mov r32 = b0 mov r34 = r1 .body .loc 1 9 0 ;; .mib nop 0 nop 0 br.call.sptk.many b0 = this_function_is_not_defined# .loc 1 10 0 ;; .loc 1 9 0 .mmi nop 0 mov r1 = r34 .loc 1 10 0 mov b0 = r32 .mib nop 0 mov ar.pfs = r33 br.ret.sptk.many b0 .LFE2: .endp function# .Letext0: .section .debug_info data4.ua 0x4c data2.ua 0x2 data4.ua @secrel(.Ldebug_abbrev0) data1 0x8 .uleb128 0x1 data4.ua @secrel(.Ldebug_line0) data8.ua .Letext0 data8.ua .Ltext0 data4.ua @secrel(.LASF0) data1 0x1 data4.ua @secrel(.LASF1) .uleb128 0x2 data1 0x1 data4.ua @secrel(.LASF2) data1 0x1 data1 0x8 data4.ua 0x48 data8.ua .LFB2 data8.ua .LFE2 data1 0x2 data1 0x7c .sleb128 16 .uleb128 0x3 stringz "int" data1 0x4 data1 0x5 data1 0x0 .section .debug_abbrev .uleb128 0x1 .uleb128 0x11 data1 0x1 .uleb128 0x10 .uleb128 0x6 .uleb128 0x12 .uleb128 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe data1 0x0 data1 0x0 .uleb128 0x2 .uleb128 0x2e data1 0x0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa data1 0x0 data1 0x0 .uleb128 0x3 .uleb128 0x24 data1 0x0 .uleb128 0x3 .uleb128 0x8 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb data1 0x0 data1 0x0 data1 0x0 .section .debug_pubnames,"",@progbits data4.ua 0x1b data2.ua 0x2 data4.ua @secrel(.Ldebug_info0) data4.ua 0x50 data4.ua 0x29 stringz "function" data4.ua 0x0 .section .debug_aranges,"",@progbits data4.ua 0x2c data2.ua 0x2 data4.ua @secrel(.Ldebug_info0) data1 0x8 data1 0x0 data2.ua 0x0 data2.ua 0x0 data8.ua .Ltext0 data8.ua .Letext0-.Ltext0 data8.ua 0x0 data8.ua 0x0 .section .debug_str,"MS",@progbits,1 .LASF0: stringz "GNU C 4.1.2" .LASF1: stringz "undefined.c" .LASF2: stringz "function"
tactcomplabs/xbgas-binutils-gdb
1,887
ld/testsuite/ld-ia64/tlsbinpic.s
/* Force .data aligned to 4K, so that .got very likely gets at 0x60000000000031b0 (0x60 bytes .tdata and 0x150 bytes .dynamic). */ .data .balign 4096 .section ".tdata", "awT", @progbits .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .long 17 sg2: .long 18 sg3: .long 19 sg4: .long 20 sg5: .long 21 sg6: .long 22 sg7: .long 23 sg8: .long 24 sl1: .long 65 sl2: .long 66 sl3: .long 67 sl4: .long 68 sl5: .long 69 sl6: .long 70 sl7: .long 71 sl8: .long 72 sh1: .long 257 sh2: .long 258 sh3: .long 259 sh4: .long 260 sh5: .long 261 sh6: .long 262 sh7: .long 263 sh8: .long 264 .explicit .pred.safe_across_calls p1-p5,p16-p63 /* Force .text aligned to 4K, so it very likely gets at 0x4000000000001000. */ .text .balign 4096 .globl fn2# .proc fn2# fn2: .prologue 12, 33 .mib .save ar.pfs, r34 alloc r34 = ar.pfs, 0, 3, 2, 0 .save rp, r33 mov r33 = b0 /* GD */ addl r14 = @ltoff(@dtpmod(sG1#)), gp addl r15 = @ltoff(@dtprel(sG1#)), gp ;; ld8 out0 = [r14] ld8 out1 = [r15] br.call.sptk.many b0 = __tls_get_addr# ;; /* GD against local symbol */ addl r14 = @ltoff(@dtpmod(sl2#)), gp addl r15 = @ltoff(@dtprel(sl2#)), gp ;; ld8 out0 = [r14] ld8 out1 = [r15] br.call.sptk.many b0 = __tls_get_addr# ;; /* LD */ addl r14 = @ltoff(@dtpmod(sl1#)), gp addl out1 = @dtprel(sl1#) + 1, r0 ;; ld8 out0 = [r14] br.call.sptk.many b0 = __tls_get_addr# ;; /* LD with 4 variables variables */ addl r14 = @ltoff(@dtpmod(sh1#)), gp mov out1 = r0 ;; ld8 out0 = [r14] br.call.sptk.many b0 = __tls_get_addr# ;; mov r2 = r8 ;; addl r14 = @dtprel(sh1#), r2 addl r15 = @dtprel(sh2#) + 2, r2 ;; adds r14 = @dtprel(sh3#) + 3, r8 movl r15 = @dtprel(sh4#) + 1 ;; add r15 = r15, r8 ;; mov ar.pfs = r34 mov b0 = r33 br.ret.sptk.many b0 .endp fn2#
tactcomplabs/xbgas-binutils-gdb
1,163
ld/testsuite/ld-arm/fdpic-shared-m.s
.arch armv7-m .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 2 .eabi_attribute 34, 1 .eabi_attribute 18, 4 .file "shared.c" .text .align 2 .global my_shared_func1 .syntax unified .thumb .fpu softvfp .type my_shared_func1, %function my_shared_func1: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. bx lr .size my_shared_func1, .-my_shared_func1 .align 2 .global my_shared_func3 .syntax unified .thumb .fpu softvfp .type my_shared_func3, %function my_shared_func3: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. mov r0, #0 bx lr .size my_shared_func3, .-my_shared_func3 .align 2 .global my_shared_func2 .syntax unified .thumb .fpu softvfp .type my_shared_func2, %function my_shared_func2: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 push {r4, lr} mov r4, r9 bl my_shared_func3(PLT) mov r9, r4 pop {r4, pc} .size my_shared_func2, .-my_shared_func2
tactcomplabs/xbgas-binutils-gdb
2,915
ld/testsuite/ld-arm/tls-descrelax-be32.s
@ we can relax local and non-weak globals for non-shared links .arch armv5te .text .arm .p2align 2 foo: @tlscall global, manually relaxed to IE ldr r0, 1f 2: ldr r0, [pc, r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .p2align 2 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc, r0 .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc, r0 .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .thumb .p2align 1 bar: @tlscall global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r0, [r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx r1(tlscall) nop .p2align 2 1: .word r1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx r0(tlscall) nop .p2align 2 1: .word r0(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .section .tdata,"awT" .global gd1 gd1: .space 4 ld1: .space 4 .globl r1 r1: .space 4 r0: .space 4
tactcomplabs/xbgas-binutils-gdb
2,339
ld/testsuite/ld-arm/cmse_sec_debug.s
.arch armv8-m.main .file "sec.c" .text .Ltext0: .cfi_sections .debug_frame .section .text.SecureLED_On,"ax",%progbits .align 1 .global SecureLED_On .global __acle_se_SecureLED_On .arch armv8-m.main .syntax unified .thumb .thumb_func .fpu fpv5-sp-d16 .type __acle_se_SecureLED_On, %function .syntax unified .thumb .thumb_func .fpu fpv5-sp-d16 .type SecureLED_On, %function SecureLED_On: __acle_se_SecureLED_On: .LFB0: .file 1 "sec.c" .loc 1 3 1 .cfi_startproc push {r7} .cfi_def_cfa_offset 4 .cfi_offset 7, -4 add r7, sp, #0 .cfi_def_cfa_register 7 .loc 1 4 1 mov sp, r7 .cfi_def_cfa_register 13 ldr r7, [sp], #4 .cfi_restore 7 .cfi_def_cfa_offset 0 bxns lr .cfi_endproc .LFE0: .size SecureLED_On, .-SecureLED_On .text .Letext0: .section .debug_info,"",%progbits .Ldebug_info0: .4byte 0x34 .2byte 0x4 .4byte .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .4byte .LASF0 .byte 0xc .4byte .LASF1 .4byte .LASF2 .4byte .Ldebug_ranges0+0 .4byte 0 .4byte .Ldebug_line0 .uleb128 0x2 .4byte .LASF3 .byte 0x1 .byte 0x2 .byte 0x1 .4byte .LFB0 .4byte .LFE0-.LFB0 .uleb128 0x1 .byte 0x9c .byte 0 .section .debug_abbrev,"",%progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x55 .uleb128 0x17 .uleb128 0x11 .uleb128 0x1 .uleb128 0x10 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x39 .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x6 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2117 .uleb128 0x19 .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",%progbits .4byte 0x1c .2byte 0x2 .4byte .Ldebug_info0 .byte 0x4 .byte 0 .2byte 0 .2byte 0 .4byte .LFB0 .4byte .LFE0-.LFB0 .4byte 0 .4byte 0 .section .debug_ranges,"",%progbits .Ldebug_ranges0: .4byte .LFB0 .4byte .LFE0 .4byte 0 .4byte 0 .section .debug_line,"",%progbits .Ldebug_line0: .section .debug_str,"MS",%progbits,1 .LASF1: .ascii "sec.c\000" .LASF0: .ascii "GNU C17 10.0.0 20190617\000" .LASF3: .ascii "SecureLED_On\000" .LASF2: .ascii "Blinky\000" .ident "GCC: (GNU) 10.0.0 20190617 (experimental)"
tactcomplabs/xbgas-binutils-gdb
2,915
ld/testsuite/ld-arm/tls-descrelax-v7.s
@ we can relax local and non-weak globals for non-shared links .arch armv7-a .text .arm .p2align 2 foo: @tlscall global, manually relaxed to IE ldr r0, 1f 2: ldr r0, [pc, r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .p2align 2 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc, r0 .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc, r0 .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .thumb .p2align 1 bar: @tlscall global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r0, [r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx r1(tlscall) nop .p2align 2 1: .word r1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx r0(tlscall) nop .p2align 2 1: .word r0(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .section .tdata,"awT" .global gd1 gd1: .space 4 ld1: .space 4 .globl r1 r1: .space 4 r0: .space 4
tactcomplabs/xbgas-binutils-gdb
1,215
ld/testsuite/ld-arm/ifunc-8.s
.syntax unified .arch armv6t2 .macro define,name,type .type \name,%gnu_indirect_function \type \name: mov pc,lr .size \name,.-\name .endm .macro define2,name define aa\name,.arm define at\name,.arm define ab\name,.arm define ta\name,.thumb_func define tt\name,.thumb_func define tb\name,.thumb_func .endm .macro test_relocs,name,width bl \name(PLT) b\width \name beq\width \name ldr r4,1f ldr r4,2f 1: .word \name(GOT) 2: .word \name(GOT_PREL) .endm .macro test_relocs2,name,type,width test_relocs a\type\name,\width test_relocs t\type\name,\width test_relocs ab\name,\width test_relocs tb\name,\width .endm .macro diff,name .word \name .word \name-. .endm .macro alldirs,doit,name \doit aa\name \doit at\name \doit ab\name \doit ta\name \doit tt\name \doit tb\name .endm define2 f1 define2 f3 alldirs .globl,f3 alldirs .hidden,f3 .globl arm .type arm,%function .arm arm: test_relocs foo test_relocs2 f1,a, test_relocs2 f3,a, .size arm,.-arm .globl _thumb .type _thumb,%function .thumb_func _thumb: test_relocs foo test_relocs2 f1,t,.w test_relocs2 f3,t,.w .size _thumb,.-_thumb .data foo: .word 0x11223344 alldirs diff,f1 alldirs diff,f3
tactcomplabs/xbgas-binutils-gdb
1,533
ld/testsuite/ld-arm/attr-merge-3a.s
.cpu arm7tdmi .fpu softvfp .eabi_attribute Tag_CPU_arch, 2 @ .eabi_attribute Tag_CPU_arch_profile, 0x41 .eabi_attribute Tag_ARM_ISA_use, 0 .eabi_attribute Tag_THUMB_ISA_use, 1 .eabi_attribute Tag_VFP_arch, 3 .eabi_attribute Tag_WMMX_arch, 1 .eabi_attribute Tag_Advanced_SIMD_arch, 0 .eabi_attribute Tag_PCS_config, 0 .eabi_attribute Tag_ABI_PCS_R9_use, 1 .eabi_attribute Tag_ABI_PCS_RW_data, 1 .eabi_attribute Tag_ABI_PCS_RO_data, 1 .eabi_attribute Tag_ABI_PCS_GOT_use, 1 .eabi_attribute Tag_ABI_PCS_wchar_t, 4 .eabi_attribute Tag_ABI_FP_rounding, 0 .eabi_attribute Tag_ABI_FP_denormal, 1 .eabi_attribute Tag_ABI_FP_exceptions, 0 .eabi_attribute Tag_ABI_FP_user_exceptions, 0 .eabi_attribute Tag_ABI_FP_number_model, 0 .eabi_attribute Tag_ABI_align8_needed, 1 .eabi_attribute Tag_ABI_align8_preserved, 1 .eabi_attribute Tag_ABI_enum_size, 1 .eabi_attribute Tag_ABI_HardFP_use, 1 .eabi_attribute Tag_ABI_VFP_args, 0 @ .eabi_attribute Tag_ABI_WMMX_args, 0 @ .eabi_attribute Tag_ABI_optimization_goals, 0 @ .eabi_attribute Tag_ABI_FP_optimization_goals, 0 @ .eabi_attribute Tag_compatibility, 1, "gnu" .eabi_attribute Tag_CPU_unaligned_access, 0 .eabi_attribute Tag_VFP_HP_extension, 0 @ .eabi_attribute Tag_ABI_FP_16bit_format, 0 .eabi_attribute Tag_nodefaults, 0 @ .eabi_attribute Tag_also_compatible_with, .eabi_attribute Tag_T2EE_use, 0 .eabi_attribute Tag_conformance, "0" .eabi_attribute Tag_Virtualization_use, 0 .eabi_attribute Tag_MPextension_use, 0 .eabi_attribute Tag_DIV_use, 0
tactcomplabs/xbgas-binutils-gdb
1,591
ld/testsuite/ld-arm/fdpic-main.s
.arch armv7-r .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 2 .eabi_attribute 34, 1 .eabi_attribute 18, 4 .file "hello.c" .text .align 2 .syntax unified .arm .fpu softvfp .type my_local_func, %function my_local_func: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. bx lr .size my_local_func, .-my_local_func .section .text.startup,"ax",%progbits .align 2 .global _start .syntax unified .arm .fpu softvfp .type _start, %function _start: b main .global main .syntax unified .arm .fpu softvfp .type main, %function main: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 ldr r2, .L4 ldr r3, .L4+4 push {r4, r5, r6, lr} ldr r5, [r9, r2] mov r4, r9 ldr r3, [r9, r3] str r3, [r5] bl my_shared_func1(PLT) mov r6, r0 mov r9, r4 ldr r0, [r5] mov r9, r4 bl my_shared_func2(PLT) ldr r3, .L4+8 mov r9, r4 add r3, r3, r9 mov r0, r3 str r3, [r5] mov r9, r4 bl my_shared_func2(PLT) ldr r3, .L4+12 mov r9, r4 ldr r3, [r9, r3] ldr r0, [r3] mov r9, r4 bl my_shared_func2(PLT) mov r0, r6 mov r9, r4 pop {r4, r5, r6, pc} .L5: .align 2 .L4: .word funcptr(GOT) .word my_shared_func1(GOTFUNCDESC) .word my_local_func(GOTOFFFUNCDESC) .word funcptr2(GOT) .size main, .-main .global funcptr2 .comm funcptr,4,4 .section .data.rel,"aw",%progbits .align 2 .type funcptr2, %object .size funcptr2, 4 funcptr2: .word my_shared_func1(FUNCDESC)
tactcomplabs/xbgas-binutils-gdb
1,625
ld/testsuite/ld-arm/stm32l4xx-fix-it-block.s
.syntax unified .cpu cortex-m4 .fpu fpv4-sp-d16 .text .align 1 .thumb .thumb_func .global _start _start: @ Create a situation where a multiple-load that should be @ patched belongs to an IT block in the position where it can @ be, that is the last position in the IT block. @ Mostly to cover the IT detection logic. @ Tests correspond to LDM CASE #1. it eq ldmeq.w r9, {r1-r9} itt eq nop.w ldmeq.w r9, {r1-r9} ite eq nop.w ldmne.w r9, {r1-r9} ittt eq nop.w nop.w ldmeq.w r9, {r1-r9} itet eq nop.w nop.w ldmeq.w r9, {r1-r9} itte eq nop.w nop.w ldmne.w r9, {r1-r9} itee eq nop.w nop.w ldmne.w r9, {r1-r9} itttt eq nop.w nop.w nop.w ldmeq.w r9, {r1-r9} ittte eq nop.w nop.w nop.w ldmne.w r9, {r1-r9} ittet eq nop.w nop.w nop.w ldmeq.w r9, {r1-r9} ittee eq nop.w nop.w nop.w ldmne.w r9, {r1-r9} itett eq nop.w nop.w nop.w ldmeq.w r9, {r1-r9} itete eq nop.w nop.w nop.w ldmne.w r9, {r1-r9} iteet eq nop.w nop.w nop.w ldmeq.w r9, {r1-r9} iteee eq nop.w nop.w nop.w ldmne.w r9, {r1-r9}
tactcomplabs/xbgas-binutils-gdb
1,596
ld/testsuite/ld-arm/fdpic-main-m.s
.arch armv7-m .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 2 .eabi_attribute 34, 1 .eabi_attribute 18, 4 .file "hello.c" .text .align 2 .syntax unified .thumb .fpu softvfp .type my_local_func, %function my_local_func: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. bx lr .size my_local_func, .-my_local_func .section .text.startup,"ax",%progbits .align 2 .global _start .syntax unified .thumb .fpu softvfp .type _start, %function _start: b main .global main .syntax unified .thumb .fpu softvfp .type main, %function main: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 ldr r2, .L4 ldr r3, .L4+4 push {r4, r5, r6, lr} ldr r5, [r9, r2] mov r4, r9 ldr r3, [r9, r3] str r3, [r5] bl my_shared_func1(PLT) mov r6, r0 mov r9, r4 ldr r0, [r5] mov r9, r4 bl my_shared_func2(PLT) ldr r3, .L4+8 mov r9, r4 add r3, r3, r9 mov r0, r3 str r3, [r5] mov r9, r4 bl my_shared_func2(PLT) ldr r3, .L4+12 mov r9, r4 ldr r3, [r9, r3] ldr r0, [r3] mov r9, r4 bl my_shared_func2(PLT) mov r0, r6 mov r9, r4 pop {r4, r5, r6, pc} .L5: .align 2 .L4: .word funcptr(GOT) .word my_shared_func1(GOTFUNCDESC) .word my_local_func(GOTOFFFUNCDESC) .word funcptr2(GOT) .size main, .-main .global funcptr2 .comm funcptr,4,4 .section .data.rel,"aw",%progbits .align 2 .type funcptr2, %object .size funcptr2, 4 funcptr2: .word my_shared_func1(FUNCDESC)
tactcomplabs/xbgas-binutils-gdb
1,406
ld/testsuite/ld-arm/ifunc-10.s
.syntax unified .arch armv6t2 .macro define,name,type .type \name,%gnu_indirect_function \type \name: mov pc,lr .size \name,.-\name .endm .macro define2,name define aa\name,.arm define at\name,.arm define ab\name,.arm define ta\name,.thumb_func define tt\name,.thumb_func define tb\name,.thumb_func .endm .macro test_relocs,name,width bl \name(PLT) b\width \name beq\width \name ldr r4,1f ldr r4,2f 1: .word \name(GOT) 2: .word \name(GOT_PREL) .endm .macro test_relocs2,name,type,width test_relocs a\type\name,\width test_relocs t\type\name,\width test_relocs ab\name,\width test_relocs tb\name,\width .endm .macro diff,name .word \name .word \name-. .endm .macro alldirs,doit,name \doit aa\name \doit at\name \doit ab\name \doit ta\name \doit tt\name \doit tb\name .endm define2 f1 # f2 provided by ifunc-4.so define2 f3 # f4 provided by ifunc-4.so alldirs .globl,f3 alldirs .hidden,f3 .globl _start .type _start,%function .arm _start: test_relocs foo test_relocs2 f1,a, test_relocs2 f2,a, test_relocs2 f3,a, test_relocs2 f4,a, .size _start,.-_start .globl _thumb .type _thumb,%function .thumb_func _thumb: test_relocs foo test_relocs2 f1,t,.w test_relocs2 f2,t,.w test_relocs2 f3,t,.w test_relocs2 f4,t,.w .size _thumb,.-_thumb .data foo: .word 0x11223344 alldirs diff,f1 alldirs diff,f2 alldirs diff,f3 alldirs diff,f4
tactcomplabs/xbgas-binutils-gdb
1,746
ld/testsuite/ld-arm/cmse-implib.s
.syntax unified .text .macro entry name, vis, entry_fct .align 2 .\vis \name .\vis __acle_se_\name .thumb .thumb_func .type \name, %function .type __acle_se_\name, %function \name: .ifnb \entry_fct \entry_fct .endif __acle_se_\name: nop .size \name, .-\name .size __acle_se_\name, .-__acle_se_\name .endm @ Valid setups for veneer generation .if (VER >= 2) entry exported_entry_veneer1, global .endif .if (VER != 4) entry exported_entry_veneer2, global .else entry exported_entry_veneer2, weak .endif .if (VER != 2) entry exported_entry_veneer3, global .endif .if (VER > 1) entry exported_entry_veneer4, global .endif @ Valid setup for entry function without veneer generation entry exported_entry_fct1, global, sg .if (VER != 4) entry exported_entry_fct2, global, sg .else @ Invalid setup for entry function without veneer generation entry exported_entry_fct2, global, nop .endif @ Normal symbol not exported to SG import library .align 2 .global not_exported_fct1 .type not_exported_fct1, %function not_exported_fct1: nop .size not_exported_fct1, .-not_exported_fct1 .ifdef CHECK_ERRORS @ Invalid setups for export to SG import library .align 2 .global __acle_se_not_exported_fct2 .type __acle_se_not_exported_fct2, %function __acle_se_not_exported_fct2: nop .size __acle_se_not_exported_fct2, .-__acle_se_not_exported_fct2 .align 2 .global __acle_se_not_exported_pseudoentry_var .global not_exported_pseudoentry_var .data .type __acle_se_not_exported_pseudoentry_var, %object .type not_exported_pseudoentry_var, %object .size not_exported_pseudoentry_var, 4 .size __acle_se_not_exported_pseudoentry_var, 4 __acle_se_not_exported_pseudoentry_var: not_exported_pseudoentry_var: .word 42 .endif
tactcomplabs/xbgas-binutils-gdb
2,915
ld/testsuite/ld-arm/tls-descrelax-be8.s
@ we can relax local and non-weak globals for non-shared links .arch armv7-a .text .arm .p2align 2 foo: @tlscall global, manually relaxed to IE ldr r0, 1f 2: ldr r0, [pc, r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .p2align 2 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc, r0 .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc, r0 .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .thumb .p2align 1 bar: @tlscall global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r0, [r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx r1(tlscall) nop .p2align 2 1: .word r1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx r0(tlscall) nop .p2align 2 1: .word r0(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .section .tdata,"awT" .global gd1 gd1: .space 4 ld1: .space 4 .globl r1 r1: .space 4 r0: .space 4
tactcomplabs/xbgas-binutils-gdb
2,556
ld/testsuite/ld-arm/cmse-veneers.s
.syntax unified .thumb .file "foo.c" .text .macro decltype name, type .ifc \type,object .data .else .thumb .thumb_func .endif .type \name, %\type .endm .macro entry name, type, vis, typespc, visspc, entry_fct .align 2 .ifb \visspc .\vis __acle_se_\name .else .\visspc __acle_se_\name .endif .\vis \name .thumb .thumb_func .ifb \typespc decltype __acle_se_\name, \type .else decltype __acle_se_\name, \typespc .endif decltype \name, \type __acle_se_\name: \entry_fct \name: .ifc \type,object .word 42 .else nop .endif .size \name, .-\name .size __acle_se_\name, .-__acle_se_\name .endm .ifndef CHECK_ERRORS @ Valid setups for veneer generation entry glob_entry_veneer1, function, global entry weak_entry_veneer1, function, weak entry glob_entry_veneer2, function, global, visspc=weak entry weak_entry_veneer2, function, weak, visspc=global @ Valid setup for entry function without SG veneer entry glob_entry_fct, function, global, entry_fct=nop @ Valid setup for entry function with absolute address .align 2 .global __acle_se_abs_entry_fct .global abs_entry_fct .type __acle_se_abs_entry_fct, %function .type abs_entry_fct, %function __acle_se_abs_entry_fct = 0x10000 abs_entry_fct = 0x10004 .size abs_entry_fct, 0 .size __acle_se_abs_entry_fct, 0 .else @ Invalid setups for veneer generation (visibility) entry loc_entry_veneer1, function, local entry loc_entry_veneer2, function, global, visspc=local entry loc_entry_veneer3, function, local, visspc=global entry loc_entry_veneer4, function, weak, visspc=local entry loc_entry_veneer5, function, local, visspc=weak @ Invalid setups for veneer generation (absent standard symbol) .align 2 .global __acle_se_fake_entry_veneer1 .thumb .thumb_func .type __acle_se_fake_entry_veneer1, %function __acle_se_fake_entry_veneer1: nop .size __acle_se_fake_entry_veneer1, .-__acle_se_fake_entry_veneer1 @ Invalid setups for veneer generation (type) entry obj_entry_veneer1, object, global, typespc=function entry obj_entry_veneer2, function, global, typespc=object @ Invalid setup for veneer generation (sections) .section .text.sub1 .align 2 .thumb .thumb_func .global __acle_se_fake_entry_veneer2 .type __acle_se_fake_entry_veneer2, %function __acle_se_fake_entry_veneer2: nop .size __acle_se_fake_entry_veneer2, .-__acle_se_fake_entry_veneer2 .section .text.sub2 .align 2 .thumb .thumb_func .global fake_entry_veneer2 .type fake_entry_veneer2, %function fake_entry_veneer2: nop .size fake_entry_veneer2, .-fake_entry_veneer2 .endif
tactcomplabs/xbgas-binutils-gdb
4,764
ld/testsuite/ld-arm/stm32l4xx-fix-ldm.s
.syntax unified .cpu cortex-m4 .fpu fpv4-sp-d16 .text .align 1 .thumb .thumb_func .global _start _start: @ LDM CASE #1 (used when rx is in upper_list) @ ldm rx, {...} -> @ ldm rx!, {lower_list} @ ldm rx, {upper_list} @ b.w ldm.w r9, {r1-r9} @ LDM CASE #1 bis (used when rx is in upper_list and pc is @ in reglist) @ ldm rx, {...} -> @ ldm rx!, {lower_list} @ ldm rx, {upper_list} ldm.w r9, {r1-r9, pc} @ LDM CASE #2 (used when rx is not in upper_list) @ ldm rx, {...} -> @ mov ry, rx where ry is the lowest register from upper_list @ ldm ry!, {lower_list} @ ldm ry, {upper_list} @ b.w ldm.w r0, {r1-r9} @ LDM CASE #2 bis (used when rx is in lower_list) @ ldm rx, {...} -> @ mov ry, rx where ry is the lowest register from upper_list @ ldm ry!, {lower_list} @ ldm ry, {upper_list} @ b.w ldm.w r1, {r1-r9} @ LDM CASE #2 ter (used when rx is not in upper_list and pc is @ in reglist) @ ldm rx, {...} -> @ mov ry, rx where ry is the lowest register from upper_list @ ldm ry!, {lower_list} @ ldm ry, {upper_list} ldm.w r0, {r1-r9, pc} @ LDM CASE #2 quater (used when rx is in lower_list and pc is @ in reglist) @ ldm rx, {...} -> @ mov ry, rx where ry is the lowest register from upper_list @ ldm ry!, {lower_list} @ ldm ry, {upper_list} ldm.w r1, {r1-r9, pc} @ LDM CASE #3 (used when rx is not in upper_list) @ ldm rx, {...} -> @ ldm rx!, {lower_list} @ ldm rx!, {upper_list} @ b.w @ Write-back variant are unpredictable when rx appears also in @ the loaded registers ldm.w r0!, {r1-r9} @ LDM CASE #3 bis (used when rx is not in upper_list and pc is @ in reglist) @ ldm rx, {...} -> @ ldm rx!, {lower_list} @ ldm rx!, {upper_list} ldm.w r0!, {r1-r9, pc} @ LDM CASE #4 (used when pc is not in reglist and rx is in @ lower_list) @ ldmb rx, {...} -> @ ldmb rx!, {upper_list} @ ldmb rx, {lower_list} ldmdb.w r1, {r1-r9} @ LDM CASE #5 (used when pc is not in reglist and rx is not in @ lower_list) @ It looks like it this mean that it could be in upper_list or not @ ldmdb rx, {...} -> @ mov ry, rx where ry is the lowest register from lower_list @ ldmdb ry!, {upper_list} @ ldmdb ry , {lower_list} @ b.w ldmdb.w sl, {r1-r9} @ LDM CASE #5 bis (used when pc is not in reglist and rx is in @ upper_list) @ ldmdb rx, {...} -> @ mov ry, rx where ry is the lowest register from lower_list @ ldmdb ry!, {upper_list} @ ldmdb ry , {lower_list} @ b.w ldmdb.w r9, {r1-r9} @ LDM CASE #6 (used when pc is in reglist and rx is in @ upper_list) @ ldmdb rx, {...} -> @ sub rx, rx, #size (lower_list + upper_list) @ ldm rx!, {lower_list} @ ldm rx, {upper_list} @ This case reverses the load order ldmdb.w r9, {r1-r9, pc} @ LDM CASE #6 bis (used when pc is in reglist and rx is in @ lower_list) @ ldmdb rx, {...} -> @ sub rx, rx, #size (lower_list + upper_list) @ ldm rx!, {lower_list} @ ldm rx, {upper_list} ldmdb.w r1, {r1-r9, pc} @ LDM CASE #7 (used when pc is in reglist and rx is not in @ upper_list) @ ldmdb rx, {...} -> @ sub ry, rx, #size (lower_list + upper_list) where ry is the lowest @ register of the upper list @ ldm ry!, {lower_list} @ ldm ry , {upper_list} @ This case reverses the load order ldmdb.w r0, {r1-r9, pc} @ LDM CASE #8 (used when pc is in not in reglist) @ ldmdb rx!, {...} -> @ ldm rx!, {upper_list} @ ldm rx!, {lower_list} @ b.w ldmdb.w r0!, {r1-r9} @ LDM CASE #9 (Used when pc is in reglist) @ ldmdb rx!, {...} -> @ sub rx, rx, #size (lower_list + upper_list) @ mov ry, rx where ry is the lowest register from upper_list @ ldm ry!, {lower_list} @ ldm ry , {upper_list} ldmdb.w r0!, {r1-r9, pc} @ POP CASE #1 (list does not include pc) @ pop {...} -> pop {lower_list} pop {upper_list} @ b.w pop {r0-r9} @ POP CASE #2 (list includes PC) @ pop {...} -> pop {lower_list} pop {upper_list} pop {r0-r9, pc}
tactcomplabs/xbgas-binutils-gdb
1,420
ld/testsuite/ld-arm/ifunc-4.s
.syntax unified .arch armv6t2 .macro define,name,type .type \name,%gnu_indirect_function \type \name: mov pc,lr .size \name,.-\name .endm .macro define2,name define aa\name,.arm define at\name,.arm define ab\name,.arm define ta\name,.thumb_func define tt\name,.thumb_func define tb\name,.thumb_func .endm .macro test_relocs,name,width bl \name(PLT) b\width \name beq\width \name ldr r4,1f ldr r4,2f 1: .word \name(GOT) 2: .word \name(GOT_PREL) .endm .macro test_relocs2,name,type,width test_relocs a\type\name,\width test_relocs t\type\name,\width test_relocs ab\name,\width test_relocs tb\name,\width .endm .macro diff,name .word \name .word \name-. .endm .macro alldirs,doit,name \doit aa\name \doit at\name \doit ab\name \doit ta\name \doit tt\name \doit tb\name .endm define2 f1 define2 f2 define2 f3 define2 f4 alldirs .globl,f2 alldirs .globl,f3 alldirs .hidden,f3 alldirs .globl,f4 alldirs .protected,f4 .globl arm .type arm,%function .arm arm: test_relocs foo test_relocs2 f1,a, test_relocs2 f2,a, test_relocs2 f3,a, test_relocs2 f4,a, .size arm,.-arm .globl _thumb .type _thumb,%function .thumb_func _thumb: test_relocs foo test_relocs2 f1,t,.w test_relocs2 f2,t,.w test_relocs2 f3,t,.w test_relocs2 f4,t,.w .size _thumb,.-_thumb .data foo: .word 0x11223344 alldirs diff,f1 alldirs diff,f2 alldirs diff,f3 alldirs diff,f4
tactcomplabs/xbgas-binutils-gdb
1,523
ld/testsuite/ld-arm/attr-merge-3b.s
.cpu arm9e .fpu neon .eabi_attribute Tag_CPU_arch, 3 @ .eabi_attribute Tag_CPU_arch_profile, 0x41 .eabi_attribute Tag_ARM_ISA_use, 1 .eabi_attribute Tag_THUMB_ISA_use, 2 .eabi_attribute Tag_VFP_arch, 4 .eabi_attribute Tag_WMMX_arch, 2 .eabi_attribute Tag_Advanced_SIMD_arch, 1 .eabi_attribute Tag_PCS_config, 2 .eabi_attribute Tag_ABI_PCS_R9_use, 3 .eabi_attribute Tag_ABI_PCS_RW_data, 3 .eabi_attribute Tag_ABI_PCS_RO_data, 2 .eabi_attribute Tag_ABI_PCS_GOT_use, 2 .eabi_attribute Tag_ABI_PCS_wchar_t, 0 .eabi_attribute Tag_ABI_FP_rounding, 1 .eabi_attribute Tag_ABI_FP_denormal, 2 .eabi_attribute Tag_ABI_FP_exceptions, 1 .eabi_attribute Tag_ABI_FP_user_exceptions, 1 .eabi_attribute Tag_ABI_FP_number_model, 3 .eabi_attribute Tag_ABI_align8_needed, 2 .eabi_attribute Tag_ABI_align8_preserved, 2 .eabi_attribute Tag_ABI_enum_size, 3 .eabi_attribute Tag_ABI_HardFP_use, 2 .eabi_attribute Tag_ABI_VFP_args, 1 @ .eabi_attribute Tag_ABI_WMMX_args, 0 @ .eabi_attribute Tag_ABI_optimization_goals, 0 @ .eabi_attribute Tag_ABI_FP_optimization_goals, 0 @ .eabi_attribute Tag_compatibility, 1, "gnu" .eabi_attribute Tag_CPU_unaligned_access, 1 .eabi_attribute Tag_VFP_HP_extension, 1 @ .eabi_attribute Tag_ABI_FP_16bit_format, 0 .eabi_attribute Tag_nodefaults, 1 @ .eabi_attribute Tag_also_compatible_with, .eabi_attribute Tag_T2EE_use, 1 .eabi_attribute Tag_conformance, "2.08" .eabi_attribute Tag_Virtualization_use, 1 .eabi_attribute Tag_MPextension_use, 1 .eabi_attribute Tag_DIV_use, 1
tactcomplabs/xbgas-binutils-gdb
1,138
ld/testsuite/ld-arm/farcall-mixed-app2.s
.text .p2align 4 .globl _start _start: mov ip, sp stmdb sp!, {r11, ip, lr, pc} bl app_func bl lib_func1 bl lib_func2 ldmia sp, {r11, sp, lr} bx lr .p2align 4 .globl app_tfunc_close .type app_tfunc_close,%function .thumb_func .code 16 app_tfunc_close: push {lr} bl lib_func2 pop {pc} bx lr @ We will place the section .mid_thumb at 0xFFFEF8. @ Just far enough for XXXX .section .mid_thumb, "xa" .p2align 4 .globl mid_tfunc .type mid_tfunc,%function .thumb_func .code 16 mid_tfunc: .syntax unified .space 24 b.w lib_func2 b.w lib_func2 @ We will place the section .far_arm at 0x2100000. .section .far_arm, "xa" .arm .p2align 4 .globl app_func .type app_func,%function app_func: mov ip, sp stmdb sp!, {r11, ip, lr, pc} bl lib_func1 bl lib_func2 ldmia sp, {r11, sp, lr} bx lr .arm .p2align 4 .globl app_func2 .type app_func2,%function app_func2: bx lr @ We will place the section .far_thumb at 0x2200000. .section .far_thumb, "xa" .p2align 4 .globl app_tfunc .type app_tfunc,%function .thumb_func .code 16 app_tfunc: push {lr} bl lib_func2 pop {pc} bx lr .data .long data_obj
tactcomplabs/xbgas-binutils-gdb
2,900
ld/testsuite/ld-arm/tls-descrelax.s
@ we can relax local and non-weak globals for non-shared links .text .arm .p2align 2 foo: @tlscall global, manually relaxed to IE ldr r0, 1f 2: ldr r0, [pc, r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .p2align 2 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 8) .p2align 2 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc, r0 .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b) .p2align 2 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 2 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc, r0 .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b) .thumb .p2align 1 bar: @tlscall global, manually relaxed to IE ldr r0, 1f 2: add r0, pc, r0 ldr r0, [r0] nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx gd1(tlscall) nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall global, should relax to IE ldr r0, 1f 2: blx r1(tlscall) nop .p2align 2 1: .word r1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, manually relaxed to LE ldr r0, 1f nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx ld1(tlscall) nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .p2align 1 @tlscall local, should relax to LE ldr r0, 1f 2: blx r0(tlscall) nop .p2align 2 1: .word r0(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded global, manually relaxed to IE ldr r0, 1f 2: add r0, pc ldr r1, [r0] mov r0, r1 nop .p2align 2 1: .word gd1(gottpoff) + (. - 2b - 4) .p2align 1 @open coded global, should relax to IE ldr r0, 1f 2: .tlsdescseq gd1 add r0, pc .tlsdescseq gd1 ldr r1, [r0,#4] .tlsdescseq gd1 blx r1 nop .p2align 2 1: .word gd1(tlsdesc) + (. - 2b + 1) .p2align 1 @open coded local, manually relaxed to LE ldr r0, 1f 2: nop nop nop nop .p2align 2 1: .word ld1(tpoff) .p2align 1 @open coded local, should relax to LE ldr r0, 1f 2: .tlsdescseq ld1 add r0, pc .tlsdescseq ld1 ldr r1, [r0,#4] .tlsdescseq ld1 blx r1 nop .p2align 2 1: .word ld1(tlsdesc) + (. - 2b + 1) .section .tdata,"awT" .global gd1 gd1: .space 4 ld1: .space 4 .globl r1 r1: .space 4 r0: .space 4
tactcomplabs/xbgas-binutils-gdb
4,945
ld/testsuite/ld-arm/group-relocs.s
@ Tests for group relocations. @ @ Beware when editing this file: it is carefully crafted so that @ specific PC- and SB-relative offsets arise. @ @ Note that the gas tests have already checked that group relocations are @ handled in the same way for local and external symbols. @ We will place .text at 0x8000. .text .globl _start _start: @ ALU, PC-relative @ Instructions start at .text + 0x0 add r0, r15, #:pc_g0:(one_group_needed_alu_pc) @ Instructions start at .text + 0x4 add r0, r15, #:pc_g0_nc:(two_groups_needed_alu_pc) add r0, r0, #:pc_g1:(two_groups_needed_alu_pc + 4) @ Instructions start at .text + 0xc add r0, r15, #:pc_g0_nc:(three_groups_needed_alu_pc) add r0, r0, #:pc_g1_nc:(three_groups_needed_alu_pc + 4) add r0, r0, #:pc_g2:(three_groups_needed_alu_pc + 8) @ ALU, SB-relative @ Instructions start at .text + 0x18 add r0, r0, #:sb_g0:(one_group_needed_alu_sb) @ Instructions start at .text + 0x1c add r0, r0, #:sb_g0_nc:(two_groups_needed_alu_sb) add r0, r0, #:sb_g1:(two_groups_needed_alu_sb) @ Instructions start at .text + 0x24 add r0, r0, #:sb_g0_nc:(three_groups_needed_alu_sb) add r0, r0, #:sb_g1_nc:(three_groups_needed_alu_sb) add r0, r0, #:sb_g2:(three_groups_needed_alu_sb) @ LDR, PC-relative @ Instructions start at .text + 0x30 add r0, pc, #:pc_g0_nc:(two_groups_needed_ldr_pc) ldr r1, [r0, #:pc_g1:(two_groups_needed_ldr_pc + 4)] @ Instructions start at .text + 0x38 add r0, pc, #:pc_g0_nc:(three_groups_needed_ldr_pc) add r0, r0, #:pc_g1_nc:(three_groups_needed_ldr_pc + 4) ldr r1, [r0, #:pc_g2:(three_groups_needed_ldr_pc + 8)] @ LDR, SB-relative @ Instructions start at .text + 0x44 ldr r1, [r0, #:sb_g0:(one_group_needed_ldr_sb)] @ Instructions start at .text + 0x48 add r0, r0, #:sb_g0_nc:(two_groups_needed_ldr_sb) ldr r1, [r0, #:sb_g1:(two_groups_needed_ldr_sb)] @ Instructions start at .text + 0x50 add r0, r0, #:sb_g0_nc:(three_groups_needed_ldr_sb) add r0, r0, #:sb_g1_nc:(three_groups_needed_ldr_sb) ldr r1, [r0, #:sb_g2:(three_groups_needed_ldr_sb)] @ LDRS, PC-relative @ Instructions start at .text + 0x5c ldrd r2, [pc, #:pc_g0:(one_group_needed_ldrs_pc)] @ Instructions start at .text + 0x60 add r0, pc, #:pc_g0_nc:(two_groups_needed_ldrs_pc) ldrd r2, [r0, #:pc_g1:(two_groups_needed_ldrs_pc + 4)] @ Instructions start at .text + 0x68 add r0, pc, #:pc_g0_nc:(three_groups_needed_ldrs_pc) add r0, r0, #:pc_g1_nc:(three_groups_needed_ldrs_pc + 4) ldrd r2, [r0, #:pc_g2:(three_groups_needed_ldrs_pc + 8)] @ LDRS, SB-relative @ Instructions start at .text + 0x74 ldrd r2, [r0, #:sb_g0:(one_group_needed_ldrs_sb)] @ Instructions start at .text + 0x78 add r0, r0, #:sb_g0_nc:(two_groups_needed_ldrs_sb) ldrd r2, [r0, #:sb_g1:(two_groups_needed_ldrs_sb)] @ Instructions start at .text + 0x80 add r0, r0, #:sb_g0_nc:(three_groups_needed_ldrs_sb) add r0, r0, #:sb_g1_nc:(three_groups_needed_ldrs_sb) ldrd r2, [r0, #:sb_g2:(three_groups_needed_ldrs_sb)] @ LDC, PC-relative @ Instructions start at .text + 0x8c ldc 0, c0, [pc, #:pc_g0:(one_group_needed_ldc_pc)] @ Instructions start at .text + 0x90 add r0, pc, #:pc_g0_nc:(two_groups_needed_ldc_pc) ldc 0, c0, [r0, #:pc_g1:(two_groups_needed_ldc_pc + 4)] @ Instructions start at .text + 0x98 add r0, pc, #:pc_g0_nc:(three_groups_needed_ldc_pc) add r0, r0, #:pc_g1_nc:(three_groups_needed_ldc_pc + 4) ldc 0, c0, [r0, #:pc_g2:(three_groups_needed_ldc_pc + 8)] @ LDC, SB-relative @ Instructions start at .text + 0xa4 ldc 0, c0, [r0, #:sb_g0:(one_group_needed_ldc_sb)] @ Instructions start at .text + 0xa8 add r0, r0, #:sb_g0_nc:(two_groups_needed_ldc_sb) ldc 0, c0, [r0, #:sb_g1:(two_groups_needed_ldc_sb)] @ Instructions start at .text + 0xb0 add r0, r0, #:sb_g0_nc:(three_groups_needed_ldc_sb) add r0, r0, #:sb_g1_nc:(three_groups_needed_ldc_sb) ldc 0, c0, [r0, #:sb_g2:(three_groups_needed_ldc_sb)] @ This point in the file is .text + 0xbc. one_group_needed_alu_pc: one_group_needed_ldrs_pc: one_group_needed_ldc_pc: mov r0, #0 @ We will place the section .data at 0x03000000 .data .word 0, 0, 0 one_group_needed_alu_sb: one_group_needed_ldr_sb: one_group_needed_ldrs_sb: one_group_needed_ldc_sb: .word 1 @ Offset 0xc .fill 0xeef0 - 16, 1, 0 two_groups_needed_alu_sb: two_groups_needed_ldr_sb: two_groups_needed_ldrs_sb: two_groups_needed_ldc_sb: .word 2 @ Offset 0xeef0 .fill 0xffeef0 - 0xeef0 - 4, 1, 0 three_groups_needed_alu_sb: three_groups_needed_ldr_sb: three_groups_needed_ldrs_sb: three_groups_needed_ldc_sb: .word 3 @ Offset 0xffeef0 @ We will place the section alpha at 0xeef0. .section alpha, "x" two_groups_needed_alu_pc: two_groups_needed_ldr_pc: two_groups_needed_ldrs_pc: two_groups_needed_ldc_pc: mov r0, #0 @ We will place the section beta at 0xffeef0. .section beta, "x" three_groups_needed_alu_pc: three_groups_needed_ldr_pc: three_groups_needed_ldrs_pc: three_groups_needed_ldc_pc: mov r0, #0
tactcomplabs/xbgas-binutils-gdb
1,157
ld/testsuite/ld-arm/fdpic-shared.s
.arch armv7-r .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 2 .eabi_attribute 34, 1 .eabi_attribute 18, 4 .file "shared.c" .text .align 2 .global my_shared_func1 .syntax unified .arm .fpu softvfp .type my_shared_func1, %function my_shared_func1: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. bx lr .size my_shared_func1, .-my_shared_func1 .align 2 .global my_shared_func3 .syntax unified .arm .fpu softvfp .type my_shared_func3, %function my_shared_func3: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. mov r0, #0 bx lr .size my_shared_func3, .-my_shared_func3 .align 2 .global my_shared_func2 .syntax unified .arm .fpu softvfp .type my_shared_func2, %function my_shared_func2: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 push {r4, lr} mov r4, r9 bl my_shared_func3(PLT) mov r9, r4 pop {r4, pc} .size my_shared_func2, .-my_shared_func2
tactcomplabs/xbgas-binutils-gdb
1,316
ld/testsuite/ld-tilepro/reloc.s
.text .global _start _start: add r2,zero,zero j external1 add r3,r2,r2 bzt zero,external2 { movei r2,external_8a; movei r3,external_8b } { movei r2,external_8a; movei r3,external_8b; lw zero,zero } { mtspr external_8a,zero } { mfspr zero,external_8a } { moveli r2,external_16a; moveli r3,external_16b } { moveli r2,lo16(external_32a); moveli r3,lo16(external_32b) } { addli r2,r2,hi16(external_32a); addli r3,r3,hi16(external_32b) } { auli r2,r2,ha16(external_32a); auli r3,r3,ha16(external_32b) } { swadd r0,r0,external_8a } { mm r2,r3,r4,external_5a,external_5b } { nop; mm r5,r6,r7,external_5a,external_5b } { shli r2,r3,external_5a; shli r4,r5,external_5b } { shli r2,r3,external_5a; shli r4,r5,external_5b; lw zero,zero } moveli r0, external1 - . moveli r0, lo16(external_data1 - .) moveli r0, hi16(external_data1 - . + 30000) moveli r0, ha16(external_data1 - . + 30000) .data .align 0x20 .int external1 .int external2 .short external_16a, external_16b .byte external_8a, external_8b .int (external_data1-.) .short (external_data1-.) .byte (external_data1-.) .short lo16(external_32a) .short lo16(external_32b) .short hi16(external_32a) .short hi16(external_32b) .short ha16(external_32a) .short ha16(external_32b)
tactcomplabs/xbgas-binutils-gdb
2,882
ld/testsuite/ld-tilegx/reloc.s
.text .global _start _start: add r2,zero,zero j external1 add r3,r2,r2 beqzt zero,external2 { movei r2,external_8a; movei r3,external_8b } { movei r2,external_8a; movei r3,external_8b; ld zero,zero } { mtspr external_8a,zero } { mfspr zero,external_8a } { moveli r2,external_16a; moveli r3,external_16b } { moveli r2,hw1_last(external_32a); moveli r3,hw1_last(external_32b) } { shl16insli r2,r2,hw0(external_32a); shl16insli r3,r3,hw0(external_32b) } { moveli r2,hw2_last(external_48a); moveli r3,hw2_last(external_48b) } { shl16insli r2,r2,hw1(external_48a); shl16insli r3,r3,hw1(external_48b) } { shl16insli r2,r2,hw0(external_48a); shl16insli r3,r3,hw0(external_48b) } { moveli r2,hw3_last(external_64a); moveli r3,hw3_last(external_64b) } { shl16insli r2,r2,hw2(external_64a); shl16insli r3,r3,hw2(external_64b) } { shl16insli r2,r2,hw1(external_64a); shl16insli r3,r3,hw1(external_64b) } { shl16insli r2,r2,hw0(external_64a); shl16insli r3,r3,hw0(external_64b) } { ld_add r0,r0,external_8a } { st_add r0,r0,external_8a } { mm r2,r3,external_5a,external_5b } { shli r2,r3,external_5a; shli r4,r5,external_5b } { shli r2,r3,external_5a; shli r4,r5,external_5b; ld zero,zero } { moveli r0, external1 - .; moveli r1, external1 - . } { moveli r0, hw1_last(external_data1 - .) moveli r1, hw1_last(external_data1 - .) } { moveli r0, hw0(external_data1 - .) moveli r1, hw0(external_data1 - .) } { moveli r0, hw2_last(external_data1 - . + 0x100000000000) moveli r1, hw2_last(external_data1 - . + 0x100000000000) } { moveli r0, hw1(external_data1 - . + 0x100000000000) moveli r1, hw1(external_data1 - . + 0x100000000000) } { moveli r0, hw0(external_data1 - . + 0x100000000000) moveli r1, hw0(external_data1 - . + 0x100000000000) } { moveli r0, hw3_last(external_data1 - . + 0x1000000000000000) moveli r1, hw3_last(external_data1 - . + 0x1000000000000000) } { moveli r0, hw2(external_data1 - . + 0x1000000000000000) moveli r1, hw2(external_data1 - . + 0x1000000000000000) } { moveli r0, hw1(external_data1 - . + 0x1000000000000000) moveli r1, hw1(external_data1 - . + 0x1000000000000000) } { moveli r0, hw0(external_data1 - . + 0x1000000000000000) moveli r1, hw0(external_data1 - . + 0x1000000000000000) } .data .align 0x20 .int external1 .int external2 .short external_16a, external_16b .byte external_8a, external_8b .int (external_data1-.) .short (external_data1-.) .byte (external_data1-.) .short hw0_last(external_16a) .short hw1_last(external_32a) .short hw0(external_32a) .short hw2_last(external_48a) .short hw1(external_48a) .short hw0(external_48a) .short hw3(external_64a) .short hw2(external_64a) .short hw1(external_64a) .short hw0(external_64a)
tactcomplabs/xbgas-binutils-gdb
5,186
ld/testsuite/ld-sparc/tlssunpic32.s
.data .align 4096 .section ".tdata", #alloc, #write, #tls .align 4 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .word 17 sg2: .word 18 sg3: .word 19 sg4: .word 20 sg5: .word 21 sg6: .word 22 sg7: .word 23 sg8: .word 24 sl1: .word 65 sl2: .word 66 sl3: .word 67 sl4: .word 68 sl5: .word 69 sl6: .word 70 sl7: .word 71 sl8: .word 72 sh1: .word 257 sh2: .word 258 sh3: .word 259 sh4: .word 260 sh5: .word 261 sh6: .word 262 sh7: .word 263 sh8: .word 264 .text .align 4096 .LLGETPC0: retl add %o7, %l7, %l7 .globl fn1 .type fn1,#function .proc 04 fn1: save %sp, -104, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD */ sethi %tgd_hi22(sg1), %l1 nop add %l1, %tgd_lo10(sg1), %l2 nop add %l7, %l2, %o0, %tgd_add(sg1) nop call __tls_get_addr, %tgd_call(sg1) nop nop;nop;nop;nop /* GD -> IE because variable is referenced through IE too */ sethi %tgd_hi22(sg2), %o0 add %o0, %tgd_lo10(sg2), %o1 add %l7, %o1, %o0, %tgd_add(sg2) call __tls_get_addr, %tgd_call(sg2) nop nop;nop;nop;nop /* GD against local variable */ sethi %tgd_hi22(sl1), %o4 add %o4, %tgd_lo10(sl1), %o4 add %l7, %o4, %o0, %tgd_add(sl1) call __tls_get_addr, %tgd_call(sl1) nop nop;nop;nop;nop /* GD -> IE against local variable referenced through IE too */ sethi %tgd_hi22(sl2), %o0 add %o0, %tgd_lo10(sl2), %o0 add %l7, %o0, %o0, %tgd_add(sl2) call __tls_get_addr, %tgd_call(sl2) nop nop;nop;nop;nop /* GD against hidden and local variable */ sethi %tgd_hi22(sh1), %o4 add %o4, %tgd_lo10(sh1), %o4 add %l7, %o4, %o0, %tgd_add(sh1) call __tls_get_addr, %tgd_call(sh1) nop nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through IE too */ sethi %tgd_hi22(sh2), %o0 add %o0, %tgd_lo10(sh2), %o0 add %l7, %o0, %o0, %tgd_add(sh2) call __tls_get_addr, %tgd_call(sh2) nop nop;nop;nop;nop /* GD against hidden but not local variable */ sethi %tgd_hi22(sH1), %o4 add %o4, %tgd_lo10(sH1), %o4 add %l7, %o4, %o0, %tgd_add(sH1) call __tls_get_addr, %tgd_call(sH1) nop nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through IE too */ sethi %tgd_hi22(sH2), %o0 add %o0, %tgd_lo10(sH2), %o0 add %l7, %o0, %o0, %tgd_add(sH2) call __tls_get_addr, %tgd_call(sH2) nop nop;nop;nop;nop /* LD */ sethi %tldm_hi22(sl1), %l1 nop add %l1, %tldm_lo10(sl1), %l2 nop add %l7, %l2, %o0, %tldm_add(sl1) nop call __tls_get_addr, %tldm_call(sl1) nop sethi %tldo_hix22(sl1), %l3 nop xor %l3, %tldo_lox10(sl1), %l4 nop add %o0, %l4, %l5, %tldo_add(sl1) nop sethi %tldo_hix22(sl2 + 2), %l2 nop xor %l2, %tldo_lox10(sl2 + 2), %l3 nop lduh [%o0 + %l3], %l6, %tldo_add(sl2 + 2) nop;nop;nop;nop /* LD against hidden and local variables */ sethi %tldm_hi22(sh1), %o1 sethi %tldo_hix22(sh1), %l3 add %o1, %tldm_lo10(sh1), %o2 sethi %tldo_hix22(sh2 + 1), %l2 add %l7, %o2, %o0, %tldm_add(sh1) xor %l3, %tldo_lox10(sh1), %l4 call __tls_get_addr, %tldm_call(sh1) xor %l2, %tldo_lox10(sh2 + 1), %l3 add %o0, %l4, %l5, %tldo_add(sh1) ldub [%o0 + %l3], %l6, %tldo_add(sh2 + 1) nop;nop;nop;nop /* LD against hidden but not local variables */ sethi %tldm_hi22(sH1), %o1 sethi %tldo_hix22(sH1 + 3), %l3 add %o1, %tldm_lo10(sH1), %o2 sethi %tldo_hix22(sH2), %l2 add %l7, %o2, %o0, %tldm_add(sH1) xor %l3, %tldo_lox10(sH1 + 3), %l4 call __tls_get_addr, %tldm_call(sH1) xor %l2, %tldo_lox10(sH2), %l3 add %o0, %l4, %l5, %tldo_add(sH1 + 3) ld [%o0 + %l3], %l6, %tldo_add(sH2) nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sg2), %l1 nop add %l1, %tie_lo10(sg2), %l2 nop ld [%l7 + %l2], %l2, %tie_ld(sg2) nop add %g7, %l2, %l2, %tie_add(sg2) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(sl2), %o3 add %o3, %tie_lo10(sl2), %o3 ld [%l7 + %o3], %o2, %tie_ld(sl2) add %g7, %o2, %o4, %tie_add(sl2) nop;nop;nop;nop /* IE against hidden and local var */ sethi %tie_hi22(sh2), %l1 add %l1, %tie_lo10(sh2), %l2 ld [%l7 + %l2], %l2, %tie_ld(sh2) add %g7, %l2, %l2, %tie_add(sh2) nop;nop;nop;nop /* IE against hidden but not local var */ sethi %tie_hi22(sH2), %l1 add %l1, %tie_lo10(sH2), %l2 ld [%l7 + %l2], %l2, %tie_ld(sH2) add %g7, %l2, %l2, %tie_add(sH2) nop;nop;nop;nop /* Direct access through %g7 */ /* IE against global var */ sethi %tie_hi22(sg5), %l1 add %l1, %tie_lo10(sg5), %l2 ld [%l7 + %l2], %l2, %tie_ld(sg5) ld [%g7 + %l2], %l2, %tie_add(sg5) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(sl5), %o3 add %o3, %tie_lo10(sl5), %o4 ld [%l7 + %o4], %o5, %tie_ld(sl5) stb %l2, [%g7 + %o5], %tie_add(sl5) nop;nop;nop;nop /* IE against hidden and local var */ sethi %tie_hi22(sh5), %o3 add %o3, %tie_lo10(sh5), %o4 ld [%l7 + %o4], %o5, %tie_ld(sh5) lduh [%g7 + %o5], %l2, %tie_add(sh5) nop;nop;nop;nop /* IE against hidden but not local var */ sethi %tie_hi22(sH5), %o3 add %o3, %tie_lo10(sH5), %o4 ld [%l7 + %o4], %o5, %tie_ld(sH5) st %l2, [%g7 + %o5], %tie_add(sH5) nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
1,540
ld/testsuite/ld-sparc/tlspie32.s
.section .tbss,"awT",@nobits .global tls_gd .align 4 .type tls_gd, #object .size tls_gd, 4 tls_gd: .skip 4 .global tls_ld .align 4 .type tls_ld, #object .size tls_ld, 4 tls_ld: .skip 4 .global tls_ie .align 4 .type tls_ie, #object .size tls_ie, 4 tls_ie: .skip 4 .section ".text" .LLGETPC0: retl add %o7, %l7, %l7 .align 4 .global foo .type foo, #function .proc 0104 foo: save %sp, -104, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD -> IE with global variable not defined in executable */ sethi %tgd_hi22(sG1), %g1 add %g1, %tgd_lo10(sG1), %g1 add %l7, %g1, %o0, %tgd_add(sG1) call __tls_get_addr, %tgd_call(sG1) nop nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ sethi %tgd_hi22(tls_gd), %g1 add %g1, %tgd_lo10(tls_gd), %g1 add %l7, %g1, %o0, %tgd_add(tls_gd) call __tls_get_addr, %tgd_call(tls_gd) nop nop;nop;nop;nop /* LD -> LE with global variable defined in executable */ sethi %tldm_hi22(tls_ld), %g1 add %g1, %tldm_lo10(tls_ld), %g1 add %l7, %g1, %o0, %tldm_add(tls_ld) call __tls_get_addr, %tldm_call(tls_ld) nop sethi %tldo_hix22(tls_ld), %g1 xor %g1, %tldo_lox10(tls_ld), %g1 add %o0, %g1, %g1, %tldo_add(tls_ld) nop;nop;nop;nop /* IE -> LE with global variable defined in executable */ sethi %tie_hi22(tls_ie), %g1 add %g1, %tie_lo10(tls_ie), %g1 ld [%l7 + %g1], %g1, %tie_ld(tls_ie) add %g7, %g1, %g1, %tie_add(tls_ie) nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
5,208
ld/testsuite/ld-sparc/tlssunpic64.s
.data .align 4096 .section ".tdata", #alloc, #write, #tls .align 4 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .word 17 sg2: .word 18 sg3: .word 19 sg4: .word 20 sg5: .word 21 sg6: .word 22 sg7: .word 23 sg8: .word 24 sl1: .word 65 sl2: .word 66 sl3: .word 67 sl4: .word 68 sl5: .word 69 sl6: .word 70 sl7: .word 71 sl8: .word 72 sh1: .word 257 sh2: .word 258 sh3: .word 259 sh4: .word 260 sh5: .word 261 sh6: .word 262 sh7: .word 263 sh8: .word 264 .text .align 4096 .LLGETPC0: retl add %o7, %l7, %l7 .globl fn1 .type fn1,#function .proc 04 fn1: save %sp, -160, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD */ sethi %tgd_hi22(sg1), %l1 nop add %l1, %tgd_lo10(sg1), %l2 nop add %l7, %l2, %o0, %tgd_add(sg1) nop call __tls_get_addr, %tgd_call(sg1) nop nop;nop;nop;nop /* GD -> IE because variable is referenced through IE too */ sethi %tgd_hi22(sg2), %o0 add %o0, %tgd_lo10(sg2), %o1 add %l7, %o1, %o0, %tgd_add(sg2) call __tls_get_addr, %tgd_call(sg2) nop nop;nop;nop;nop /* GD against local variable */ sethi %tgd_hi22(sl1), %o4 add %o4, %tgd_lo10(sl1), %o4 add %l7, %o4, %o0, %tgd_add(sl1) call __tls_get_addr, %tgd_call(sl1) nop nop;nop;nop;nop /* GD -> IE against local variable referenced through IE too */ sethi %tgd_hi22(sl2), %o0 add %o0, %tgd_lo10(sl2), %o0 add %l7, %o0, %o0, %tgd_add(sl2) call __tls_get_addr, %tgd_call(sl2) nop nop;nop;nop;nop /* GD against hidden and local variable */ sethi %tgd_hi22(sh1), %o4 add %o4, %tgd_lo10(sh1), %o4 add %l7, %o4, %o0, %tgd_add(sh1) call __tls_get_addr, %tgd_call(sh1) nop nop;nop;nop;nop /* GD -> IE against hidden and local variable referenced through IE too */ sethi %tgd_hi22(sh2), %o0 add %o0, %tgd_lo10(sh2), %o0 add %l7, %o0, %o0, %tgd_add(sh2) call __tls_get_addr, %tgd_call(sh2) nop nop;nop;nop;nop /* GD against hidden but not local variable */ sethi %tgd_hi22(sH1), %o4 add %o4, %tgd_lo10(sH1), %o4 add %l7, %o4, %o0, %tgd_add(sH1) call __tls_get_addr, %tgd_call(sH1) nop nop;nop;nop;nop /* GD -> IE against hidden but not local variable referenced through IE too */ sethi %tgd_hi22(sH2), %o0 add %o0, %tgd_lo10(sH2), %o0 add %l7, %o0, %o0, %tgd_add(sH2) call __tls_get_addr, %tgd_call(sH2) nop nop;nop;nop;nop /* LD */ sethi %tldm_hi22(sl1), %l1 nop add %l1, %tldm_lo10(sl1), %l2 nop add %l7, %l2, %o0, %tldm_add(sl1) nop call __tls_get_addr, %tldm_call(sl1) nop sethi %tldo_hix22(sl1), %l3 nop xor %l3, %tldo_lox10(sl1), %l4 nop add %o0, %l4, %l5, %tldo_add(sl1) nop sethi %tldo_hix22(sl2 + 2), %l2 nop xor %l2, %tldo_lox10(sl2 + 2), %l3 nop lduh [%o0 + %l3], %l6, %tldo_add(sl2 + 2) nop;nop;nop;nop /* LD against hidden and local variables */ sethi %tldm_hi22(sh1), %o1 sethi %tldo_hix22(sh1), %l3 add %o1, %tldm_lo10(sh1), %o2 sethi %tldo_hix22(sh2 + 1), %l2 add %l7, %o2, %o0, %tldm_add(sh1) xor %l3, %tldo_lox10(sh1), %l4 call __tls_get_addr, %tldm_call(sh1) xor %l2, %tldo_lox10(sh2 + 1), %l3 ldx [%o0 + %l4], %l5, %tldo_add(sh1) add %o0, %l3, %l6, %tldo_add(sh2 + 1) nop;nop;nop;nop /* LD against hidden but not local variables */ sethi %tldm_hi22(sH1), %o1 sethi %tldo_hix22(sH1 + 3), %l3 add %o1, %tldm_lo10(sH1), %o2 sethi %tldo_hix22(sH2), %l2 add %l7, %o2, %o0, %tldm_add(sH1) xor %l3, %tldo_lox10(sH1 + 3), %l4 call __tls_get_addr, %tldm_call(sH1) xor %l2, %tldo_lox10(sH2), %l3 add %o0, %l4, %l5, %tldo_add(sH1 + 3) ld [%o0 + %l3], %l6, %tldo_add(sH2) nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sg2), %l1 nop add %l1, %tie_lo10(sg2), %l2 nop ldx [%l7 + %l2], %l2, %tie_ldx(sg2) nop add %g7, %l2, %l2, %tie_add(sg2) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(sl2), %o3 add %o3, %tie_lo10(sl2), %o3 ldx [%l7 + %o3], %o2, %tie_ldx(sl2) add %g7, %o2, %o4, %tie_add(sl2) nop;nop;nop;nop /* IE against hidden and local var */ sethi %tie_hi22(sh2), %l1 add %l1, %tie_lo10(sh2), %l2 ldx [%l7 + %l2], %l2, %tie_ldx(sh2) add %g7, %l2, %l2, %tie_add(sh2) nop;nop;nop;nop /* IE against hidden but not local var */ sethi %tie_hi22(sH2), %l1 add %l1, %tie_lo10(sH2), %l2 ldx [%l7 + %l2], %l2, %tie_ldx(sH2) add %g7, %l2, %l2, %tie_add(sH2) nop;nop;nop;nop /* Direct access through %g7 */ /* IE against global var */ sethi %tie_hi22(sg5), %l1 add %l1, %tie_lo10(sg5), %l2 ldx [%l7 + %l2], %l2, %tie_ldx(sg5) ldx [%g7 + %l2], %l2, %tie_add(sg5) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(sl5), %o3 add %o3, %tie_lo10(sl5), %o4 ldx [%l7 + %o4], %o5, %tie_ldx(sl5) stb %l2, [%g7 + %o5], %tie_add(sl5) nop;nop;nop;nop /* IE against hidden and local var */ sethi %tie_hi22(sh5), %o3 add %o3, %tie_lo10(sh5), %o4 ldx [%l7 + %o4], %o5, %tie_ldx(sh5) stx %l2, [%g7 + %o5], %tie_add(sh5) nop;nop;nop;nop /* IE against hidden but not local var */ sethi %tie_hi22(sH5), %o3 add %o3, %tie_lo10(sH5), %o4 ldx [%l7 + %o4], %o5, %tie_ldx(sH5) st %l2, [%g7 + %o5], %tie_add(sH5) nop;nop;nop;nop return %i7 + 8 nop
tactcomplabs/xbgas-binutils-gdb
1,717
ld/testsuite/ld-sparc/tlssunnopic32.s
.data .align 4096 .section ".tbss" .align 4 bl1: .word 0 bl2: .word 0 bl3: .word 0 bl4: .word 0 bl5: .word 0 .text .align 4096 .globl fn3 .type fn3,#function .proc 04 fn3: save %sp, -104, %sp .hidden _GLOBAL_OFFSET_TABLE_ sethi %hi(_GLOBAL_OFFSET_TABLE_), %l1 or %l1, %lo(_GLOBAL_OFFSET_TABLE_), %l1 nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sg1), %o3 add %o3, %tie_lo10(sg1), %o3 ld [%l1 + %o3], %o2, %tie_ld(sg1) add %g7, %o2, %o4, %tie_add(sg1) nop;nop;nop;nop /* direct %g7 access IE against global var */ sethi %tie_hi22(sg2), %o0 add %o0, %tie_lo10(sg2), %o0 ld [%l1 + %o0], %o0, %tie_ld(sg2) ld [%g7 + %o0], %o0, %tie_add(sg2) nop;nop;nop;nop /* IE against hidden var */ sethi %tie_hi22(sh1), %o0 add %o0, %tie_lo10(sh1), %o0 ld [%l1 + %o0], %o0, %tie_ld(sh1) add %g7, %o0, %o0, %tie_add(sh1) nop;nop;nop;nop /* direct %g7 access IE against hidden var */ sethi %tie_hi22(sh2), %o5 add %o5, %tie_lo10(sh2), %o1 ld [%l1 + %o1], %o2, %tie_ld(sh2) stb %o3, [%g7 + %o2], %tie_add(sh2) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(bl1), %o0 add %o0, %tie_lo10(bl1), %o0 ld [%l1 + %o0], %o0, %tie_ld(bl1) add %g7, %o0, %o0, %tie_add(bl1) nop;nop;nop;nop /* direct %g7 access IE against local var */ sethi %tie_hi22(bl2), %o5 add %o5, %tie_lo10(bl2), %o1 ld [%l1 + %o1], %o2, %tie_ld(bl2) stb %o3, [%g7 + %o2], %tie_add(bl2) nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl3+1), %o2 xor %o2, %tle_lox10(bl3+1), %o4 add %g7, %o4, %o0 nop;nop;nop;nop /* LE, hidden var, direct %g7 access */ sethi %tle_hix22(sh3), %o2 xor %o2, %tle_lox10(sh3), %o2 ld [%g7 + %o2], %o2 nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
2,515
ld/testsuite/ld-sparc/tlssunbin32.s
.section ".tbss" .align 4 .globl bg1, bg2, bg3, bg4, bg5, bg6, bg7, bg8 bg1: .word 0 bg2: .word 0 bg3: .word 0 bg4: .word 0 bg5: .word 0 bg6: .word 0 bg7: .word 0 bg8: .word 0 bl1: .word 0 bl2: .word 0 bl3: .word 0 bl4: .word 0 bl5: .word 0 bl6: .word 0 bl7: .word 0 bl8: .word 0 .text .globl _start .type _start,#function .proc 04 _start: save %sp, -104, %sp .hidden _GLOBAL_OFFSET_TABLE_ sethi %hi(_GLOBAL_OFFSET_TABLE_), %l4 or %l4, %lo(_GLOBAL_OFFSET_TABLE_), %l4 nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sG6), %o3 add %o3, %tie_lo10(sG6), %o3 ld [%l4 + %o3], %o2, %tie_ld(sG6) add %g7, %o2, %o4, %tie_add(sG6) nop;nop;nop;nop /* IE -> LE against global var defined in exec */ sethi %tie_hi22(bg6), %o3 add %o3, %tie_lo10(bg6), %o5 ld [%l4 + %o5], %o2, %tie_ld(bg6) add %g7, %o2, %o4, %tie_add(bg6) nop;nop;nop;nop /* IE -> LE against local var */ sethi %tie_hi22(bl6), %o3 add %o3, %tie_lo10(bl6), %o5 ld [%l4 + %o5], %l2, %tie_ld(bl6) add %g7, %l2, %l2, %tie_add(bl6) nop;nop;nop;nop /* direct %g7 access IE -> LE against local var */ sethi %tie_hi22(bl8), %o3 add %o3, %tie_lo10(bl8), %o5 ld [%l4 + %o5], %l2, %tie_ld(bl8) ld [%g7 + %l2], %l2, %tie_add(bl8) nop;nop;nop;nop /* IE -> LE against hidden but not local var */ sethi %tie_hi22(sh6), %o3 add %o3, %tie_lo10(sh6), %o5 ld [%l4 + %o5], %l2, %tie_ld(sh6) add %g7, %l2, %l2, %tie_add(sh6) nop;nop;nop;nop /* direct %g7 access IE -> LE against hidden but not local var */ sethi %tie_hi22(bl8), %o3 add %o3, %tie_lo10(bl8), %o5 ld [%l4 + %o5], %l2, %tie_ld(bl8) stb %l1, [%g7 + %l2], %tie_add(bl8) nop;nop;nop;nop /* LE, global var defined in exec */ sethi %tle_hix22(sg2), %l1 nop xor %l1, %tle_lox10(sg2), %l2 nop add %g7, %l2, %l3 nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl2+2), %o0 xor %o0, %tle_lox10(bl2+2), %o0 add %g7, %o0, %o0 nop;nop;nop;nop /* LE, hidden var defined in exec */ sethi %tle_hix22(sh2+1), %l1 xor %l1, %tle_lox10(sh2+1), %o5 add %g7, %o5, %o1 nop;nop;nop;nop /* Direct %g7 access */ /* LE, global var defined in exec */ sethi %tle_hix22(sg3), %l1 xor %l1, %tle_lox10(sg3), %o5 ld [%g7 + %o5], %o1 nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl3 + 3), %o0 xor %o0, %tle_lox10(bl3 + 3), %o0 stb %o1, [%g7 + %o0] nop;nop;nop;nop /* LE, hidden var defined in exec */ sethi %tle_hix22(sh3 + 3), %o2 xor %o2, %tle_lox10(sh3 + 3), %o4 ldstub [%g7 + %o4], %o5 nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
1,542
ld/testsuite/ld-sparc/tlspie64.s
.section .tbss,"awT",@nobits .global tls_gd .align 4 .type tls_gd, #object .size tls_gd, 4 tls_gd: .skip 4 .global tls_ld .align 4 .type tls_ld, #object .size tls_ld, 4 tls_ld: .skip 4 .global tls_ie .align 4 .type tls_ie, #object .size tls_ie, 4 tls_ie: .skip 4 .section ".text" .LLGETPC0: retl add %o7, %l7, %l7 .align 4 .global foo .type foo, #function .proc 0104 foo: save %sp, -160, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD -> IE with global variable not defined in executable */ sethi %tgd_hi22(sG1), %g1 add %g1, %tgd_lo10(sG1), %g1 add %l7, %g1, %o0, %tgd_add(sG1) call __tls_get_addr, %tgd_call(sG1) nop nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ sethi %tgd_hi22(tls_gd), %g1 add %g1, %tgd_lo10(tls_gd), %g1 add %l7, %g1, %o0, %tgd_add(tls_gd) call __tls_get_addr, %tgd_call(tls_gd) nop nop;nop;nop;nop /* LD -> LE with global variable defined in executable */ sethi %tldm_hi22(tls_ld), %g1 add %g1, %tldm_lo10(tls_ld), %g1 add %l7, %g1, %o0, %tldm_add(tls_ld) call __tls_get_addr, %tldm_call(tls_ld) nop sethi %tldo_hix22(tls_ld), %g1 xor %g1, %tldo_lox10(tls_ld), %g1 add %o0, %g1, %g1, %tldo_add(tls_ld) nop;nop;nop;nop /* IE -> LE with global variable defined in executable */ sethi %tie_hi22(tls_ie), %g1 add %g1, %tie_lo10(tls_ie), %g1 ldx [%l7 + %g1], %g1, %tie_ldx(tls_ie) add %g7, %g1, %g1, %tie_add(tls_ie) nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
1,856
ld/testsuite/ld-sparc/tlssunnopic64.s
.data .align 4096 .section ".tbss" .align 4 bl1: .word 0 bl2: .word 0 bl3: .word 0 bl4: .word 0 bl5: .word 0 .text .align 4096 .globl fn3 .type fn3,#function .proc 04 fn3: save %sp, -160, %sp .hidden _GLOBAL_OFFSET_TABLE_ sethi %hh(_GLOBAL_OFFSET_TABLE_), %l1 sethi %lm(_GLOBAL_OFFSET_TABLE_), %l2 or %l1, %hm(_GLOBAL_OFFSET_TABLE_), %l1 or %l2, %lo(_GLOBAL_OFFSET_TABLE_), %l2 sllx %l1, 32, %l1 add %l1, %l2, %l1 nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sg1), %o3 add %o3, %tie_lo10(sg1), %o3 ldx [%l1 + %o3], %o2, %tie_ldx(sg1) add %g7, %o2, %o4, %tie_add(sg1) nop;nop;nop;nop /* direct %g7 access IE against global var */ sethi %tie_hi22(sg2), %o0 add %o0, %tie_lo10(sg2), %o0 ldx [%l1 + %o0], %o0, %tie_ldx(sg2) lduw [%g7 + %o0], %o0, %tie_add(sg2) nop;nop;nop;nop /* IE against hidden var */ sethi %tie_hi22(sh1), %o0 add %o0, %tie_lo10(sh1), %o0 ldx [%l1 + %o0], %o0, %tie_ldx(sh1) add %g7, %o0, %o0, %tie_add(sh1) nop;nop;nop;nop /* direct %g7 access IE against hidden var */ sethi %tie_hi22(sh2), %o5 add %o5, %tie_lo10(sh2), %o1 ldx [%l1 + %o1], %o2, %tie_ldx(sh2) stb %o3, [%g7 + %o2], %tie_add(sh2) nop;nop;nop;nop /* IE against local var */ sethi %tie_hi22(bl1), %o0 add %o0, %tie_lo10(bl1), %o0 ldx [%l1 + %o0], %o0, %tie_ldx(bl1) add %g7, %o0, %o0, %tie_add(bl1) nop;nop;nop;nop /* direct %g7 access IE against local var */ sethi %tie_hi22(bl2), %o5 add %o5, %tie_lo10(bl2), %o1 ldx [%l1 + %o1], %o2, %tie_ldx(bl2) stb %o3, [%g7 + %o2], %tie_add(bl2) nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl3+1), %o2 xor %o2, %tle_lox10(bl3+1), %o4 add %g7, %o4, %o0 nop;nop;nop;nop /* LE, hidden var, direct %g7 access */ sethi %tle_hix22(sh3), %o2 xor %o2, %tle_lox10(sh3), %o2 ld [%g7 + %o2], %o2 nop;nop;nop;nop return %i7 + 8 nop
tactcomplabs/xbgas-binutils-gdb
4,110
ld/testsuite/ld-sparc/tlssunbinpic64.s
.data .align 4096 .section ".tdata", #alloc, #write, #tls .align 4 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .word 17 sg2: .word 18 sg3: .word 19 sg4: .word 20 sg5: .word 21 sg6: .word 22 sg7: .word 23 sg8: .word 24 sl1: .word 65 sl2: .word 66 sl3: .word 67 sl4: .word 68 sl5: .word 69 sl6: .word 70 sl7: .word 71 sl8: .word 72 sh1: .word 257 sh2: .word 258 sh3: .word 259 sh4: .word 260 sh5: .word 261 sh6: .word 262 sh7: .word 263 sh8: .word 264 .text .align 4096 .LLGETPC0: retl add %o7, %l7, %l7 .globl fn2 .type fn2,#function .proc 04 fn2: save %sp, -160, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD -> IE because variable is not defined in executable */ sethi %tgd_hi22(sG1), %l1 nop add %l1, %tgd_lo10(sG1), %l2 nop add %l7, %l2, %o0, %tgd_add(sG1) nop call __tls_get_addr, %tgd_call(sG1) nop nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through IE too */ sethi %tgd_hi22(sG2), %o0 add %o0, %tgd_lo10(sG2), %o1 add %l7, %o1, %o0, %tgd_add(sG2) call __tls_get_addr, %tgd_call(sG2) nop nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ sethi %tgd_hi22(sg1), %l0 add %l0, %tgd_lo10(sg1), %l5 add %l7, %l5, %o0, %tgd_add(sg1) call __tls_get_addr, %tgd_call(sg1) nop nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ sethi %tgd_hi22(sl1), %o0 add %o0, %tgd_lo10(sl1), %o1 add %l7, %o1, %o0, %tgd_add(sl1) call __tls_get_addr, %tgd_call(sl1) nop nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ sethi %tgd_hi22(sh1), %o0 add %o0, %tgd_lo10(sh1), %o1 add %l7, %o1, %o0, %tgd_add(sh1) call __tls_get_addr, %tgd_call(sh1) nop nop;nop;nop;nop /* LD -> LE */ sethi %tldm_hi22(sl1), %l1 nop add %l1, %tldm_lo10(sl1), %l2 nop add %l7, %l2, %o0, %tldm_add(sl1) nop call __tls_get_addr, %tldm_call(sl1) nop sethi %tldo_hix22(sl1), %l3 nop xor %l3, %tldo_lox10(sl1), %l4 nop add %o0, %l4, %l5, %tldo_add(sl1) nop sethi %tldo_hix22(sl2 + 2), %l2 nop xor %l2, %tldo_lox10(sl2 + 2), %l3 nop lduh [%o0 + %l3], %l6, %tldo_add(sl2 + 2) nop;nop;nop;nop /* LD -> LE against hidden variables */ sethi %tldm_hi22(sh1), %o1 sethi %tldo_hix22(sh1), %l3 add %o1, %tldm_lo10(sh1), %o2 sethi %tldo_hix22(sh2 + 1), %l2 add %l7, %o2, %o0, %tldm_add(sh1) xor %l3, %tldo_lox10(sh1), %l4 call __tls_get_addr, %tldm_call(sh1) xor %l2, %tldo_lox10(sh2 + 1), %l3 add %o0, %l4, %l5, %tldo_add(sh1) ldub [%o0 + %l3], %l6, %tldo_add(sh2 + 1) nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sG2), %l1 nop add %l1, %tie_lo10(sG2), %l2 nop ldx [%l7 + %l2], %l2, %tie_ldx(sG2) nop add %g7, %l2, %l2, %tie_add(sG2) nop;nop;nop;nop /* IE -> LE against global var defined in exec */ sethi %tie_hi22(sg1), %o3 add %o3, %tie_lo10(sg1), %o3 ldx [%l7 + %o3], %o2, %tie_ldx(sg1) add %g7, %o2, %o4, %tie_add(sg1) nop;nop;nop;nop /* IE -> LE against local var */ sethi %tie_hi22(sl1), %l4 add %l4, %tie_lo10(sl1), %l1 ldx [%l7 + %l1], %l3, %tie_ldx(sl1) add %g7, %l3, %l3, %tie_add(sl1) nop;nop;nop;nop /* IE -> LE against hidden var */ sethi %tie_hi22(sh1), %o1 add %o1, %tie_lo10(sh1), %o3 ldx [%l7 + %o3], %o0, %tie_ldx(sh1) add %g7, %o0, %o3, %tie_add(sh1) nop;nop;nop;nop /* Direct access through %g7 */ /* IE against global var */ sethi %tie_hi22(sG5), %o3 add %o3, %tie_lo10(sG5), %o3 ldx [%l7 + %o3], %o2, %tie_ldx(sG5) ldx [%g7 + %o2], %o4, %tie_add(sG5) nop;nop;nop;nop /* IE->LE against local var */ sethi %tie_hi22(sl5), %o3 add %o3, %tie_lo10(sl5), %o3 ldx [%l7 + %o3], %o2, %tie_ldx(sl5) stb %o4, [%g7 + %o2], %tie_add(sl5) nop;nop;nop;nop /* IE->LE against hidden var */ sethi %tie_hi22(sh5), %o5 add %o5, %tie_lo10(sh5), %o3 ldx [%l7 + %o3], %o2, %tie_ldx(sh5) ldsb [%g7 + %o2], %o4, %tie_add(sh5) nop;nop;nop;nop return %i7 + 8 nop
tactcomplabs/xbgas-binutils-gdb
4,100
ld/testsuite/ld-sparc/tlssunbinpic32.s
.data .align 4096 .section ".tdata", #alloc, #write, #tls .align 4 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8 sg1: .word 17 .skip 4096 sg2: .word 18 sg3: .word 19 sg4: .word 20 sg5: .word 21 sg6: .word 22 sg7: .word 23 sg8: .word 24 sl1: .word 65 sl2: .word 66 sl3: .word 67 sl4: .word 68 sl5: .word 69 sl6: .word 70 sl7: .word 71 sl8: .word 72 sh1: .word 257 sh2: .word 258 sh3: .word 259 sh4: .word 260 sh5: .word 261 sh6: .word 262 sh7: .word 263 sh8: .word 264 .text .align 4096 .LLGETPC0: retl add %o7, %l7, %l7 .globl fn2 .type fn2,#function .proc 04 fn2: save %sp, -104, %sp sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 call .LLGETPC0 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 nop;nop;nop;nop /* GD -> IE because variable is not defined in executable */ sethi %tgd_hi22(sG1), %l1 nop add %l1, %tgd_lo10(sG1), %l2 nop add %l7, %l2, %o0, %tgd_add(sG1) nop call __tls_get_addr, %tgd_call(sG1) nop nop;nop;nop;nop /* GD -> IE because variable is not defined in executable where the variable is referenced through IE too */ sethi %tgd_hi22(sG2), %o0 add %o0, %tgd_lo10(sG2), %o1 add %l7, %o1, %o0, %tgd_add(sG2) call __tls_get_addr, %tgd_call(sG2) nop nop;nop;nop;nop /* GD -> LE with global variable defined in executable */ sethi %tgd_hi22(sg1), %l0 add %l0, %tgd_lo10(sg1), %l5 add %l7, %l5, %o0, %tgd_add(sg1) call __tls_get_addr, %tgd_call(sg1) nop nop;nop;nop;nop /* GD -> LE with local variable defined in executable */ sethi %tgd_hi22(sl1), %o0 add %o0, %tgd_lo10(sl1), %o1 add %l7, %o1, %o0, %tgd_add(sl1) call __tls_get_addr, %tgd_call(sl1) nop nop;nop;nop;nop /* GD -> LE with hidden variable defined in executable */ sethi %tgd_hi22(sh1), %o0 add %o0, %tgd_lo10(sh1), %o1 add %l7, %o1, %o0, %tgd_add(sh1) call __tls_get_addr, %tgd_call(sh1) nop nop;nop;nop;nop /* LD -> LE */ sethi %tldm_hi22(sl1), %l1 nop add %l1, %tldm_lo10(sl1), %l2 nop add %l7, %l2, %o0, %tldm_add(sl1) nop call __tls_get_addr, %tldm_call(sl1) nop sethi %tldo_hix22(sl1), %l3 nop xor %l3, %tldo_lox10(sl1), %l4 nop add %o0, %l4, %l5, %tldo_add(sl1) nop sethi %tldo_hix22(sl2 + 2), %l2 nop xor %l2, %tldo_lox10(sl2 + 2), %l3 nop lduh [%o0 + %l3], %l6, %tldo_add(sl2 + 2) nop;nop;nop;nop /* LD -> LE against hidden variables */ sethi %tldm_hi22(sh1), %o1 sethi %tldo_hix22(sh1), %l3 add %o1, %tldm_lo10(sh1), %o2 sethi %tldo_hix22(sh2 + 1), %l2 add %l7, %o2, %o0, %tldm_add(sh1) xor %l3, %tldo_lox10(sh1), %l4 call __tls_get_addr, %tldm_call(sh1) xor %l2, %tldo_lox10(sh2 + 1), %l3 add %o0, %l4, %l5, %tldo_add(sh1) ldub [%o0 + %l3], %l6, %tldo_add(sh2 + 1) nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sG2), %l1 nop add %l1, %tie_lo10(sG2), %l2 nop ld [%l7 + %l2], %l2, %tie_ld(sG2) nop add %g7, %l2, %l2, %tie_add(sG2) nop;nop;nop;nop /* IE -> LE against global var defined in exec */ sethi %tie_hi22(sg1), %o3 add %o3, %tie_lo10(sg1), %o3 ld [%l7 + %o3], %o3, %tie_ld(sg1) add %g7, %o3, %o4, %tie_add(sg1) nop;nop;nop;nop /* IE -> LE against local var */ sethi %tie_hi22(sl1), %l4 add %l4, %tie_lo10(sl1), %l1 ld [%l7 + %l1], %l3, %tie_ld(sl1) add %g7, %l3, %l3, %tie_add(sl1) nop;nop;nop;nop /* IE -> LE against hidden var */ sethi %tie_hi22(sh1), %o1 add %o1, %tie_lo10(sh1), %o3 ld [%l7 + %o3], %o0, %tie_ld(sh1) add %g7, %o0, %o3, %tie_add(sh1) nop;nop;nop;nop /* Direct access through %g7 */ /* IE against global var */ sethi %tie_hi22(sG5), %o3 add %o3, %tie_lo10(sG5), %o3 ld [%l7 + %o3], %o2, %tie_ld(sG5) ld [%g7 + %o2], %o4, %tie_add(sG5) nop;nop;nop;nop /* IE->LE against local var */ sethi %tie_hi22(sl5), %o3 add %o3, %tie_lo10(sl5), %o3 ld [%l7 + %o3], %o2, %tie_ld(sl5) stb %o4, [%g7 + %o2], %tie_add(sl5) nop;nop;nop;nop /* IE->LE against hidden var */ sethi %tie_hi22(sh5), %o5 add %o5, %tie_lo10(sh5), %o3 ld [%l7 + %o3], %o2, %tie_ld(sh5) ldsb [%g7 + %o2], %o4, %tie_add(sh5) nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
2,648
ld/testsuite/ld-sparc/tlssunbin64.s
.section ".tbss" .align 4 .globl bg1, bg2, bg3, bg4, bg5, bg6, bg7, bg8 bg1: .word 0 bg2: .word 0 bg3: .word 0 bg4: .word 0 bg5: .word 0 bg6: .word 0 bg7: .word 0 bg8: .word 0 bl1: .word 0 bl2: .word 0 bl3: .word 0 bl4: .word 0 bl5: .word 0 bl6: .word 0 bl7: .word 0 bl8: .word 0 .text .globl _start .type _start,#function .proc 04 _start: save %sp, -160, %sp .hidden _GLOBAL_OFFSET_TABLE_ sethi %hh(_GLOBAL_OFFSET_TABLE_), %l1 sethi %lm(_GLOBAL_OFFSET_TABLE_), %l2 or %l1, %hm(_GLOBAL_OFFSET_TABLE_), %l1 or %l2, %lo(_GLOBAL_OFFSET_TABLE_), %l2 sllx %l1, 32, %l1 add %l1, %l2, %l4 nop;nop;nop;nop /* IE against global var */ sethi %tie_hi22(sG6), %o3 add %o3, %tie_lo10(sG6), %o3 ldx [%l4 + %o3], %o2, %tie_ldx(sG6) add %g7, %o2, %o4, %tie_add(sG6) nop;nop;nop;nop /* IE -> LE against global var defined in exec */ sethi %tie_hi22(bg6), %o3 add %o3, %tie_lo10(bg6), %o5 ldx [%l4 + %o5], %o2, %tie_ldx(bg6) add %g7, %o2, %o4, %tie_add(bg6) nop;nop;nop;nop /* IE -> LE against local var */ sethi %tie_hi22(bl6), %o3 add %o3, %tie_lo10(bl6), %o5 ldx [%l4 + %o5], %l2, %tie_ldx(bl6) add %g7, %l2, %l2, %tie_add(bl6) nop;nop;nop;nop /* direct %g7 access IE -> LE against local var */ sethi %tie_hi22(bl8), %o3 add %o3, %tie_lo10(bl8), %o5 ldx [%l4 + %o5], %l2, %tie_ldx(bl8) ldsw [%g7 + %l2], %l2, %tie_add(bl8) nop;nop;nop;nop /* IE -> LE against hidden but not local var */ sethi %tie_hi22(sh6), %o3 add %o3, %tie_lo10(sh6), %o5 ldx [%l4 + %o5], %l2, %tie_ldx(sh6) add %g7, %l2, %l2, %tie_add(sh6) nop;nop;nop;nop /* direct %g7 access IE -> LE against hidden but not local var */ sethi %tie_hi22(bl8), %o3 add %o3, %tie_lo10(bl8), %o5 ldx [%l4 + %o5], %l2, %tie_ldx(bl8) stb %l1, [%g7 + %l2], %tie_add(bl8) nop;nop;nop;nop /* LE, global var defined in exec */ sethi %tle_hix22(sg2), %l1 nop xor %l1, %tle_lox10(sg2), %l2 nop add %g7, %l2, %l3 nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl2+2), %o0 xor %o0, %tle_lox10(bl2+2), %o0 add %g7, %o0, %o0 nop;nop;nop;nop /* LE, hidden var defined in exec */ sethi %tle_hix22(sh2+1), %l1 xor %l1, %tle_lox10(sh2+1), %o5 add %g7, %o5, %o1 nop;nop;nop;nop /* Direct %g7 access */ /* LE, global var defined in exec */ sethi %tle_hix22(sg3), %l1 xor %l1, %tle_lox10(sg3), %o5 ldx [%g7 + %o5], %o1 nop;nop;nop;nop /* LE, local var */ sethi %tle_hix22(bl3 + 3), %o0 xor %o0, %tle_lox10(bl3 + 3), %o0 stb %o1, [%g7 + %o0] nop;nop;nop;nop /* LE, hidden var defined in exec */ sethi %tle_hix22(sh3 + 3), %o2 xor %o2, %tle_lox10(sh3 + 3), %o4 ldstub [%g7 + %o4], %o5 nop;nop;nop;nop ret restore
tactcomplabs/xbgas-binutils-gdb
2,213
ld/testsuite/ld-powerpc/vle-reloc-2.s
.section .text sub1: se_blr sub2: se_blr .section .text vle_reloc_2: e_or2i 1, low@l e_or2i 2, high@h e_or2i 3, high_adjust@ha e_or2i 4, low_sdarel@sdarel@l e_or2i 5, high_sdarel@sdarel@h e_or2i 6, high_adjust_sdarel@sdarel@ha e_and2i. 1, low@l e_and2i. 2, high@h e_and2i. 3, high_adjust@ha e_and2i. 4, low_sdarel@sdarel@l e_and2i. 5, high_sdarel@sdarel@h e_and2i. 6, high_adjust_sdarel@sdarel@ha e_or2is 1, low@l e_or2is 2, high@h e_or2is 3, high_adjust@ha e_or2is 4, low_sdarel@sdarel@l e_or2is 5, high_sdarel@sdarel@h e_or2is 6, high_adjust_sdarel@sdarel@ha e_lis 1, low@l e_lis 2, high@h e_lis 3, high_adjust@ha e_lis 4, low_sdarel@sdarel@l e_lis 5, high_sdarel@sdarel@h e_lis 6, high_adjust_sdarel@sdarel@ha e_and2is. 1, low@l e_and2is. 2, high@h e_and2is. 3, high_adjust@ha e_and2is. 4, low_sdarel@sdarel@l e_and2is. 5, high_sdarel@sdarel@h e_and2is. 6, high_adjust_sdarel@sdarel@ha e_cmp16i 1, low@l e_cmp16i 2, high@h e_cmp16i 3, high_adjust@ha e_cmp16i 4, low_sdarel@sdarel@l e_cmp16i 5, high_sdarel@sdarel@h e_cmp16i 6, high_adjust_sdarel@sdarel@ha e_cmpl16i 1, low@l e_cmpl16i 2, high@h e_cmpl16i 3, high_adjust@ha e_cmpl16i 4, low_sdarel@sdarel@l e_cmpl16i 5, high_sdarel@sdarel@h e_cmpl16i 6, high_adjust_sdarel@sdarel@ha e_cmph16i 1, low@l e_cmph16i 2, high@h e_cmph16i 3, high_adjust@ha e_cmph16i 4, low_sdarel@sdarel@l e_cmph16i 5, high_sdarel@sdarel@h e_cmph16i 6, high_adjust_sdarel@sdarel@ha e_cmphl16i 1, low@l e_cmphl16i 2, high@h e_cmphl16i 3, high_adjust@ha e_cmphl16i 4, low_sdarel@sdarel@l e_cmphl16i 5, high_sdarel@sdarel@h e_cmphl16i 6, high_adjust_sdarel@sdarel@ha e_add2i. 1, low@l e_add2i. 2, high@h e_add2i. 3, high_adjust@ha e_add2i. 4, low_sdarel@sdarel@l e_add2i. 5, high_sdarel@sdarel@h e_add2i. 6, high_adjust_sdarel@sdarel@ha e_add2is 1, low@l e_add2is 2, high@h e_add2is 3, high_adjust@ha e_add2is 4, low_sdarel@sdarel@l e_add2is 5, high_sdarel@sdarel@h e_add2is 6, high_adjust_sdarel@sdarel@ha e_mull2i 1, low@l e_mull2i 2, high@h e_mull2i 3, high_adjust@ha e_mull2i 4, low_sdarel@sdarel@l e_mull2i 5, high_sdarel@sdarel@h e_mull2i 6, high_adjust_sdarel@sdarel@ha
tactcomplabs/xbgas-binutils-gdb
1,677
ld/testsuite/ld-powerpc/tlsie.s
.section ".tbss","awT",@nobits .p2align 3 pad: .space 8 .global a a: .space 8 .global b b: .space 8 .global c c: .space 8 .global d d: .space 8 .text .globl _start _start: #Small model OpenPower ld 9,.La@toc(2) add 10,9,.La@tls .section .toc,"aw",@progbits .La: .quad a@tprel .text #Medium model ELF addis 9,2,b@got@tprel@ha ld 10,b@got@tprel@l(9) add 3,10,b@tls #PCrel pld 4,c@got@tprel@pcrel add 4,4,c@tls@pcrel #All of the above using the same symbol addis 9,2,.Ld@toc@ha ld 9,.Ld@toc@l(9) add 10,9,.Ld@tls .section .toc,"aw",@progbits .Ld: .quad d@tprel .text addis 9,2,d@got@tprel@ha ld 31,d@got@tprel@l(9) add 3,31,d@tls pld 30,d@got@tprel@pcrel add 3,30,d@tls@pcrel #Note that after optimisation r31 and r30 above have a different value to #what they would have without optimisation. r31 may not even be written. #Here are all the other insns that gas/ld accept as the final insn of an #IE sequence. The r30 value below will be different after optimisation #for the non-update forms. lwzx 4,30,d@tls@pcrel lwzux 4,30,d@tls@pcrel lbzx 5,30,d@tls@pcrel lbzux 5,30,d@tls@pcrel stwx 6,30,d@tls@pcrel stwux 6,30,d@tls@pcrel stbx 7,30,d@tls@pcrel stbux 7,30,d@tls@pcrel lhzx 8,30,d@tls@pcrel lhzux 8,30,d@tls@pcrel lhax 9,30,d@tls@pcrel lhaux 9,30,d@tls@pcrel sthx 10,30,d@tls@pcrel sthux 10,30,d@tls@pcrel lfsx 11,30,d@tls@pcrel lfsux 11,30,d@tls@pcrel lfdx 12,30,d@tls@pcrel lfdux 12,30,d@tls@pcrel stfsx 13,30,d@tls@pcrel stfsux 13,30,d@tls@pcrel stfdx 14,30,d@tls@pcrel stfdux 14,30,d@tls@pcrel ldx 15,30,d@tls@pcrel ldux 15,30,d@tls@pcrel stdx 16,30,d@tls@pcrel stdux 16,30,d@tls@pcrel lwax 17,30,d@tls@pcrel
tactcomplabs/xbgas-binutils-gdb
3,130
ld/testsuite/ld-powerpc/tocopt8.s
.section .toc,"aw" x4t: .quad x4 x5t: .quad x5 .section .sdata,"aw" .p2align 4 x1: .quad 1 x2: .quad 2 x3: .quad 3 x4: .quad 4 x5: .quad 5 x6: .quad 6 .globl _start .text _start: # no need for got entry, optimise to nop,addi addis 9,2,x1@got@ha ld 9,x1@got@l(9) # must keep got entry, optimise to nop,addi,ld addis 4,2,x2@got@ha addi 5,4,x2@got@l ld 6,0(5) # no need for toc entry, optimise to nop,addi addis 9,2,x4t@toc@ha ld 9,x4t@toc@l(9) # must keep toc entry, optimise to nop,addi,ld # if we had a reloc tying the ld to x5/x5t then we could throw away # the toc entry and optimise to nop,nop,addi addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l ld 6,0(5) # keep toc entry due to other accesses to x5t, optimise to nop,ld addis 9,2,x5t@toc@ha ld 9,x5t@toc@l(9) addis 4,2,x2@got@ha addi 5,4,x2@got@l lwz 6,0(5) addis 9,2,x1@toc@ha lwz 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lwz 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lwa 6,0(5) addis 9,2,x1@toc@ha lwa 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lwa 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lhz 6,0(5) addis 9,2,x1@toc@ha lhz 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lhz 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lha 6,0(5) addis 9,2,x1@toc@ha lha 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lha 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lbz 6,0(5) addis 9,2,x1@toc@ha lbz 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lbz 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lfs 6,0(5) addis 9,2,x1@toc@ha lfs 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lfs 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lfd 6,0(5) addis 9,2,x1@toc@ha lfd 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lfd 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxv 6,0(5) addis 9,2,x1@toc@ha lxv 9,x1@toc@l(9) addis 4,2,x1@toc@ha addi 5,4,x1@toc@l lxv 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxsd 6,0(5) addis 9,2,x1@toc@ha lxsd 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lxsd 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxssp 6,0(5) addis 9,2,x1@toc@ha lxssp 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lxssp 6,0(5) addis 9,2,x1@toc@ha std 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l std 6,0(5) addis 9,2,x1@toc@ha stw 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stw 6,0(5) addis 9,2,x1@toc@ha sth 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l sth 6,0(5) addis 9,2,x1@toc@ha stb 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stb 6,0(5) addis 9,2,x1@toc@ha stfs 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stfs 6,0(5) addis 9,2,x1@toc@ha stfd 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stfd 6,0(5) addis 9,2,x1@toc@ha stxv 9,x1@toc@l(9) addis 4,2,x1@toc@ha addi 5,4,x1@toc@l stxv 6,0(5) addis 9,2,x1@toc@ha stxsd 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stxsd 6,0(5) addis 9,2,x1@toc@ha stxssp 9,x1@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stxssp 6,0(5)
tactcomplabs/xbgas-binutils-gdb
2,740
ld/testsuite/ld-powerpc/tls32.s
.section ".tbss","awT",@nobits .global _start,gd0,ld0,ld1,ld2,ie0,le0,le1 .align 2 gd0: .space 4 ld0: .space 4 ld1: .space 4 ld2: .space 4 ie0: .space 4 le0: .space 4 le1: .space 4 .section ".tdata","awT",@progbits .align 2 gd4: .long 0x12345678 ld4: .long 0x23456789 ld5: .long 0x3456789a ld6: .long 0x456789ab ie4: .long 0x56789abc le4: .long 0x6789abcd le5: .long 0x789abcde .section ".got2","aw" .LCTOC1 = .+32768 .text _start: bcl 20,31,0f 0: mflr 30 addis 30,30,.LCTOC1-0b@ha addi 30,30,.LCTOC1-0b@l #extern syms #GD addi 3,31,gd@got@tlsgd #R_PPC_GOT_TLSGD16 gd .ifdef TLSMARK bl __tls_get_addr(gd@tlsgd) #R_PPC_TLSGD gd #R_PPC_REL24 __tls_get_addr .else bl __tls_get_addr #R_PPC_REL24 __tls_get_addr .endif #LD addi 3,31,ld@got@tlsld #R_PPC_GOT_TLSLD16 ld .ifdef TLSMARK bl __tls_get_addr(ld@tlsld) #R_PPC_TLSLD ld #R_PPC_REL24 __tls_get_addr .else bl __tls_get_addr #R_PPC_REL24 __tls_get_addr .endif #global syms #GD addi 3,31,gd0@got@tlsgd #R_PPC_GOT_TLSGD16 gd0 .ifdef TLSMARK bl __tls_get_addr+0x8000(gd0@tlsgd)@plt #R_PPC_TLSGD gd0 #R_PPC_PLTREL24 __tls_get_addr+0x8000 .else bl __tls_get_addr+0x8000@plt #R_PPC_PLTREL24 __tls_get_addr+0x8000 .endif #LD addi 3,31,ld0@got@tlsld #R_PPC_GOT_TLSLD16 ld0 .ifdef TLSMARK #exercise saner new syntax with @plt before the arg bl __tls_get_addr+0x8000@plt(ld0@tlsld) #R_PPC_TLSLD ld0 #R_PPC_PLTREL24 __tls_get_addr+0x8000 .else bl __tls_get_addr+0x8000@plt #R_PPC_PLTREL24 __tls_get_addr+0x8000 .endif addi 9,3,ld0@dtprel #R_PPC_DTPREL16 ld0 addis 9,3,ld1@dtprel@ha #R_PPC_DTPREL16_HA ld1 lwz 10,ld1@dtprel@l(9) #R_PPC_DTPREL16_LO ld1 #IE lwz 9,ie0@got@tprel(31) #R_PPC_GOT_TPREL16 ie0 lhzx 10,9,ie0@tls #R_PPC_TLS ie0 #LE lbz 10,le0@tprel(2) #R_PPC_TPREL16 le0 addis 9,2,le1@tprel@ha #R_PPC_TPREL16_HA le1 stb 10,le1@tprel@l(9) #R_PPC_TPREL16_LO le1 #local syms, use a different got reg too. #GD addi 3,30,gd4@got@tlsgd #R_PPC_GOT_TLSGD16 gd4 .ifdef TLSMARK bl __tls_get_addr(gd4@tlsgd) #R_PPC_TLSGD gd4 #R_PPC_REL24 __tls_get_addr .else bl __tls_get_addr #R_PPC_REL24 __tls_get_addr .endif #LD addi 3,30,ld4@got@tlsld #R_PPC_GOT_TLSLD16 ld4 .ifdef TLSMARK bl __tls_get_addr(ld4@tlsld) #R_PPC_TLSLD ld4 #R_PPC_REL24 __tls_get_addr .else bl __tls_get_addr #R_PPC_REL24 __tls_get_addr .endif stw 10,ld4@dtprel(3) #R_PPC_DTPREL16 ld4 addis 9,3,ld5@dtprel@ha #R_PPC_DTPREL16_HA ld5 stw 10,ld5@dtprel@l(9) #R_PPC_DTPREL16_LO ld5 #IE lwz 9,ie0@got@tprel(30) #R_PPC_GOT_TPREL16 ie4 sthx 10,9,ie0@tls #R_PPC_TLS ie4 #LE lhz 10,le4@tprel(2) #R_PPC_TPREL16 le4 addis 9,2,le5@tprel@ha #R_PPC_TPREL16_HA le5 lha 10,le5@tprel@l(9) #R_PPC_TPREL16_LO le5
tactcomplabs/xbgas-binutils-gdb
2,861
ld/testsuite/ld-powerpc/tls.s
.section ".tbss","awT",@nobits .global _start,gd0,ld0,ld1,ld2,ie0,le0,le1 .align 3 gd0: .space 8 ld0: .space 8 ld1: .space 8 ld2: .space 8 ie0: .space 8 le0: .space 8 le1: .space 8 .section ".tdata","awT",@progbits .align 3 gd4: .quad 0x123456789abcdef0 ld4: .quad 0x23456789abcdef01 ld5: .quad 0x3456789abcdef012 ld6: .quad 0x456789abcdef0123 ie4: .quad 0x56789abcdef01234 le4: .quad 0x6789abcdef012345 le5: .quad 0x789abcdef0123456 .section ".opd","aw",@progbits .p2align 3 _start: .quad .L_start,.TOC.@tocbase,0 .text .L_start: #extern syms #GD addi 3,2,gd@got@tlsgd #R_PPC64_GOT_TLSGD16 gd .ifdef TLSMARK bl __tls_get_addr(gd@tlsgd) #R_PPC64_TLSGD gd #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop #LD addi 3,2,ld@got@tlsld #R_PPC64_GOT_TLSLD16 ld .ifdef TLSMARK bl __tls_get_addr(ld@tlsld) #R_PPC64_TLSLD ld #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop #global syms #GD addi 3,2,gd0@got@tlsgd #R_PPC64_GOT_TLSGD16 gd0 .ifdef TLSMARK bl __tls_get_addr(gd0@tlsgd) #R_PPC64_TLSGD gd0 #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop #LD addi 3,2,ld0@got@tlsld #R_PPC64_GOT_TLSLD16 ld0 .ifdef TLSMARK bl __tls_get_addr(ld0@tlsld) #R_PPC64_TLSLD ld0 #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop addi 9,3,ld0@dtprel #R_PPC64_DTPREL16 ld0 addis 9,3,ld1@dtprel@ha #R_PPC64_DTPREL16_HA ld1 lwz 10,ld1@dtprel@l(9) #R_PPC64_DTPREL16_LO ld1 ld 9,ld2@got@dtprel(2) #R_PPC64_GOT_DTPREL16_DS ld2 ldx 10,9,3 #IE ld 9,ie0@got@tprel(2) #R_PPC64_GOT_TPREL16_DS ie0 lhzx 10,9,ie0@tls #R_PPC64_TLS ie0 #LE lbz 10,le0@tprel(13) #R_PPC64_TPREL16 le0 addis 9,13,le1@tprel@ha #R_PPC64_TPREL16_HA le1 stb 10,le1@tprel@l(9) #R_PPC64_TPREL16_LO le1 #local syms #GD addi 3,2,gd4@got@tlsgd #R_PPC64_GOT_TLSGD16 gd4 .ifdef TLSMARK bl __tls_get_addr(gd4@tlsgd) #R_PPC64_TLSGD gd4 #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop #LD addi 3,2,ld4@got@tlsld #R_PPC64_GOT_TLSLD16 ld4 .ifdef TLSMARK bl __tls_get_addr(ld4@tlsld) #R_PPC64_TLSLD ld4 #R_PPC64_REL24 __tls_get_addr .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr .endif nop std 10,ld4@dtprel(3) #R_PPC64_DTPREL16_DS ld4 addis 9,3,ld5@dtprel@ha #R_PPC64_DTPREL16_HA ld5 stw 10,ld5@dtprel@l(9) #R_PPC64_DTPREL16_LO ld5 ld 9,ld6@got@dtprel(2) #R_PPC64_GOT_DTPREL16_DS ld6 stdx 10,9,3 #IE ld 9,ie0@got@tprel(2) #R_PPC64_GOT_TPREL16_DS ie4 sthx 10,9,ie0@tls #R_PPC64_TLS ie4 #LE lwa 10,le4@tprel(13) #R_PPC64_TPREL16 le4 addis 9,13,le5@tprel@ha #R_PPC64_TPREL16_HA le5 lha 10,le5@tprel@l(9) #R_PPC64_TPREL16_LO le5
tactcomplabs/xbgas-binutils-gdb
3,237
ld/testsuite/ld-powerpc/aix-tls-reloc.s
# An external tdata symbol .globl tdata_ext[TL] .csect tdata_ext[TL] .long 1 .csect tdata_int_csect[TL] # A first internal tdata symbol tdata_int1: .long 2 # A second internal tdata symbol tdata_int2: .long 3 # Two external tbss symbols. # XCOFF doesn't seem to allow internal tbss # (or bss) symbols. .comm tbss_ext[UL],8 .toc # TC entries targeting the external tdata symbol # Their value should be "tdata_ext" address, # except TLSM value which must be 0. # Their relocations should target it. .tc tdata_ext_gd[TC],tdata_ext[TL] .tc .tdata_ext_gd[TC],tdata_ext[TL]@m .tc tdata_ext_ld[TC],tdata_ext[TL]@ld .tc tdata_ext_ie[TC],tdata_ext[TL]@ie .tc tdata_ext_le[TC],tdata_ext[TL]@le # TC entries targeting internal tdata symbols. # Their value should be "tdata_int1" or "tdata_int2" # addresses, except TLSM value which must be 0. # Their relocations should target "tdata_int_csect". .tc tdata_int1_gd[TC],tdata_int1 .tc .tdata_int1_gd[TC],tdata_int1@m .tc tdata_int1_ld[TC],tdata_int1@ld .tc tdata_int1_ie[TC],tdata_int1@ie .tc tdata_int1_le[TC],tdata_int1@le .tc tdata_int2_gd[TC],tdata_int2 .tc .tdata_int2_gd[TC],tdata_int2@m .tc tdata_int2_ld[TC],tdata_int2@ld .tc tdata_int2_ie[TC],tdata_int2@ie .tc tdata_int2_le[TC],tdata_int2@le # TC entries targeting the external tdata symbol # Their value should be "tbss_ext" address, # except TLSM value which must be 0. # Their relocations should target "tbss_ext". .tc tbss_ext_gd[TC],tbss_ext[UL] .tc .tbss_ext_gd[TC],tbss_ext[UL]@m .tc tbss_ext_ld[TC],tbss_ext[UL]@ld .tc tbss_ext_ie[TC],tbss_ext[UL]@ie .tc tbss_ext_le[TC],tbss_ext[UL]@le # Module entry .tc mh[TC],mh[TC]@ml .rename mh[TC], "_$TLSML" # Symbol for the module handle # Macros .macro gd_macro,sym .if size == 32 lwz 4, \sym\()[TC](2) lwz 3, .\sym\()[TC](2) .else ld 4, \sym\()[TC](2) ld 3, .\sym\()[TC](2) .endif bla __tls_get_addr .endm .macro ld_macro, sym .if size == 32 lwz 4, \sym\()[TC](2) .else ld 4, \sym\()[TC](2) .endif add 5,3,4 .endm .macro ie_macro, sym .if size == 32 bla __get_tpointer lwz 4, \sym\()[TC](2) add 5,3,4 .else ld 4, \sym\()[TC](2) add 5,4,13 .endif .endm .macro le_macro, sym .if size == 32 bla __get_tpointer lwz 4, \sym\()[TC](2) add 5,3,4 .else ld 4, \sym\()[TC](2) add 5,3,13 .endif .endm # As TLS relocations are made in for TC symbols, # this function only aims to avoid garbage collection # of these symbols, especially hidden ones. .globl foo .globl .foo .csect foo[DS],3 foo: .if size == 32 .long .foo, TOC[tc0], 0 .else .llong .foo, TOC[tc0], 0 .endif .csect foo[PR] .foo: # External syms #GD gd_macro tdata_ext_gd gd_macro tdata_int1_gd gd_macro tdata_int2_gd gd_macro tbss_ext_gd #LD .if size == 32 lwz 3, mh[TC](2) .else ld 3, mh[TC](2) .endif bla __tls_get_mod ld_macro tdata_ext_ld ld_macro tdata_int1_ld ld_macro tdata_int2_ld ld_macro tbss_ext_ld #IE ie_macro tdata_ext_ie ie_macro tdata_int1_ie ie_macro tdata_int2_ie ie_macro tbss_ext_ie #LE le_macro tdata_ext_le le_macro tdata_int1_le le_macro tdata_int2_le le_macro tbss_ext_le
tactcomplabs/xbgas-binutils-gdb
2,018
ld/testsuite/ld-powerpc/pr28827-1.s
.globl _start .type _start,@function .text _start: .cfi_startproc 0: addis 2,12,(.TOC.-0b)@ha addi 2,2,(.TOC.-0b)@l .localentry _start,.-0b mflr 0 std 0,16(1) stdu 1,-32(1) .cfi_def_cfa_offset 32 .cfi_offset 65, 16 .macro call f bl \f nop .endm # 3000 plt calls, giving over 64k in .plt size. With a small .got # this guarantees some plt call stubs can use a 16-bit signed offset # from .TOC. while others need a 32-bit signed offset (and are larger). .irpc t4,012 .irpc t3,0123456789 .irpc t2,0123456789 .irpc t1,0123456789 .if \t4 call f\t4\t3\t2\t1 .elseif \t3 call f\t3\t2\t1 .elseif \t2 call f\t2\t1 .else call f\t1 .endif .endr .endr .endr .endr addi 1,1,32 .cfi_def_cfa_offset 0 ld 0,16(1) mtlr 0 .cfi_restore 65 blr .cfi_endproc .size _start,.-_start # Padding to trigger a stub sizing error with commit 2f83249c13 and # c804c6f98d (relro changes). This particular testcase gives a decrease # in .got to .plt gap after .eh_frame editing, resulting in some plt # call stubs being smaller. If the very last one is smaller the size # error triggers. Arguably, the ppc64 backend should not report an # error for shrinkage. However, the actual PR object files showed an # *increase* in .got to .plt gap after .eh_frame editing, resulting in # some plt call stubs being larger. That hit an assertion failure # when a long branch stub followed the larger plt call stub and # overwrote the end of the plt call stub. # With enough fiddling of this testcase it likely would be possible to # find the right padding here and .eh_frame sizing to trigger an # increase in .got to .plt gap. The point of this testcase is to show # that the .got to .plt gap should not change after sizing. .space 50000 # Generate some .eh_frame info that -gc-sections will trim .macro fundef f .section .text.\f,"ax",@progbits .type \f,@function \f: .cfi_startproc blr .cfi_endproc .size \f,.-\f .endm .irpc t2,0123456789 .irpc t1,0123456789 fundef dummy\t2\t1 .endr .endr
tactcomplabs/xbgas-binutils-gdb
1,162
ld/testsuite/ld-powerpc/tocopt6-inc.s
.macro start, sym .type \sym, @function .pushsection .opd, "aw" \sym: .quad .L.\sym, .TOC.@tocbase, 0 .popsection .L.\sym: mflr 0 std 31, -8(1) std 0, 16(1) stdu 1, -128(1) mr 31, 1 .endm .macro end, sym addi 1,31,128 ld 0, 16(1) mtlr 0 ld 31, -8(1) blr .size \sym, . - .L.\sym .endm .macro forward, from, to start \from bl \to nop end \from .endm .macro usegot, sym .pushsection .data \sym\@: .quad \@ .popsection .pushsection .toc, "aw" .LT\@: .tc \sym\@[TC], \sym\@ .popsection ld 3,.LT\@@toc(2) .endm .macro in123 .pushsection .toc, "aw" .LThello: .tc hello[TC],hello .popsection .pushsection .rodata hello: .asciz "Hello, world!\n" .popsection .pushsection .text.in123, "axG", @progbits, in123, comdat .weak in123 start in123 ld 3, .LThello@toc(2) #bl printf nop end in123 .popsection .endm .macro in23 .pushsection .text forward local, in123 .popsection .pushsection .text.in23, "axG", @progbits, in23, comdat .weak in23 forward in23, local .popsection .endm .macro gobblegot, sym .pushsection .text .globl \sym start \sym .rept 5000 usegot a .endr end \sym .popsection .endm
tactcomplabs/xbgas-binutils-gdb
3,787
ld/testsuite/ld-powerpc/tocopt7.s
.section .toc,"aw" .p2align 4 x4t: .quad x4 x5t: .quad x5 x6t: .quad x6 .section .sdata,"aw" .p2align 4 x1: .quad 1 x2: .quad 2 x3: .quad 3 x4: .quad 4 x5: .quad 5 x6: .quad 6 .globl _start .text _start: # no need for got entry, optimise to nop,addi addis 9,2,x1@got@ha ld 9,x1@got@l(9) # must keep got entry, optimise to nop,addi,ld addis 4,2,x2@got@ha addi 5,4,x2@got@l ld 6,0(5) # can't optimise due to possibility that r28 isn't dead addis 28,2,x1@got@ha ldu 9,x1@got@l(28) # no need for toc entry, optimise to nop,addi addis 9,2,x4t@toc@ha ld 9,x4t@toc@l(9) # must keep toc entry, optimise to nop,addi,ld # if we had a reloc tying the ld to x5/x5t then we could throw away # the toc entry and optimise to nop,nop,addi addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l ld 6,0(5) # can't optimise due to possibility that r28 isn't dead addis 28,2,x4t@toc@ha ldu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lwz 6,0(5) addis 9,2,x4t@toc@ha lwz 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lwz 6,0(5) addis 28,2,x4t@toc@ha lwzu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lwa 6,0(5) addis 9,2,x4t@toc@ha lwa 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lwa 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lhz 6,0(5) addis 9,2,x4t@toc@ha lhz 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lhz 6,0(5) addis 28,2,x4t@toc@ha lhzu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lha 6,0(5) addis 9,2,x4t@toc@ha lha 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lha 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lbz 6,0(5) addis 9,2,x4t@toc@ha lbz 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lbz 6,0(5) addis 28,2,x4t@toc@ha lbzu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lfs 6,0(5) addis 9,2,x4t@toc@ha lfs 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lfs 6,0(5) addis 28,2,x4t@toc@ha lfsu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lfd 6,0(5) addis 9,2,x4t@toc@ha lfd 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lfd 6,0(5) addis 28,2,x4t@toc@ha lfdu 9,x4t@toc@l(28) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxv 6,0(5) addis 9,2,x4t@toc@ha lxv 9,x4t@toc@l(9) addis 4,2,x6t@toc@ha addi 5,4,x6t@toc@l lxv 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxsd 6,0(5) addis 9,2,x4t@toc@ha lxsd 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lxsd 6,0(5) addis 4,2,x2@got@ha addi 5,4,x2@got@l lxssp 6,0(5) addis 9,2,x4t@toc@ha lxssp 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l lxssp 6,0(5) addis 9,2,x4t@toc@ha std 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l std 6,0(5) addis 28,2,x4t@toc@ha stdu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha stw 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stw 6,0(5) addis 28,2,x4t@toc@ha stwu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha sth 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l sth 6,0(5) addis 28,2,x4t@toc@ha sthu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha stb 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stb 6,0(5) addis 28,2,x4t@toc@ha stbu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha stfs 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stfs 6,0(5) addis 28,2,x4t@toc@ha stfsu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha stfd 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stfd 6,0(5) addis 28,2,x4t@toc@ha stfdu 9,x4t@toc@l(28) addis 9,2,x4t@toc@ha stxv 9,x4t@toc@l(9) addis 4,2,x6t@toc@ha addi 5,4,x6t@toc@l stxv 6,0(5) addis 9,2,x4t@toc@ha stxsd 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stxsd 6,0(5) addis 9,2,x4t@toc@ha stxssp 9,x4t@toc@l(9) addis 4,2,x5t@toc@ha addi 5,4,x5t@toc@l stxssp 6,0(5)
tactcomplabs/xbgas-binutils-gdb
1,480
ld/testsuite/ld-powerpc/tlstoc.s
.section ".tbss","awT",@nobits .global _start,gd0,ld0,ld1,ld2,ie0,le0,le1 .align 3 gd0: .space 8 ld0: .space 8 ld1: .space 8 ld2: .space 8 ie0: .space 8 le0: .space 8 le1: .space 8 .section ".tdata","awT",@progbits .align 3 gd4: .quad 0x123456789abcdef0 ld4: .quad 0x23456789abcdef01 ld5: .quad 0x3456789abcdef012 ld6: .quad 0x456789abcdef0123 ie4: .quad 0x56789abcdef01234 le4: .quad 0x6789abcdef012345 le5: .quad 0x789abcdef0123456 .section ".opd","aw",@progbits .p2align 3 _start: .quad .L_start,.TOC.@tocbase,0 .text .L_start: #extern syms #GD addi 3,2,.Lgd@toc bl .__tls_get_addr nop .section .toc,"aw",@progbits .Lgd: .quad gd@dtpmod .quad gd@dtprel .text #LD addi 3,2,.Lld@toc bl .__tls_get_addr nop .section .toc,"aw",@progbits .Lld: .quad ld@dtpmod .quad 0 .text #global syms #GD addi 3,2,.Lgd0@toc bl .__tls_get_addr nop .section .toc,"aw",@progbits .Lgd0: .quad gd0@dtpmod .quad gd0@dtprel .text #LD addi 3,2,.Lld0@toc bl .__tls_get_addr nop .section .toc,"aw",@progbits .Lld0: .quad ld0@dtpmod .quad 0 .text addi 9,3,ld0@dtprel addis 9,3,ld1@dtprel@ha lwz 10,ld1@dtprel@l(9) ld 9,.Lld2@toc(2) ldx 10,9,3 .section .toc,"aw",@progbits .Lld2: .quad ld2@dtprel .text #IE ld 9,.Lie0@toc(2) lhzx 10,9,.Lie0@tls .section .toc,"aw",@progbits .Lie0: .quad ie0@tprel .text #LE lbz 10,le0@tprel(13) #R_PPC64_TPREL16 le0 addis 9,13,le1@tprel@ha #R_PPC64_TPREL16_HA le1 stb 10,le1@tprel@l(9) #R_PPC64_TPREL16_LO le1
tactcomplabs/xbgas-binutils-gdb
1,082
ld/testsuite/ld-powerpc/pr23937.s
.abiversion 2 .text .p2align 4,,15 .type implementation, @function implementation: .LCF0: addis 2,12,.TOC.-.LCF0@ha addi 2,2,.TOC.-.LCF0@l .localentry implementation,.-implementation mflr 0 addis 3,2,.LC0@toc@ha addi 3,3,.LC0@toc@l std 0,16(1) stdu 1,-32(1) bl puts nop addi 1,1,32 li 3,0 ld 0,16(1) mtlr 0 blr .size implementation,.-implementation .p2align 4,,15 .type resolver, @function resolver: .LCF1: addis 2,12,.TOC.-.LCF1@ha addi 2,2,.TOC.-.LCF1@l .localentry resolver,.-resolver addis 3,2,implementation@toc@ha addi 3,3,implementation@toc@l blr .size resolver,.-resolver .type magic, @gnu_indirect_function .set magic,resolver .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LCF2: addis 2,12,.TOC.-.LCF2@ha addi 2,2,.TOC.-.LCF2@l .localentry main,.-main mflr 0 std 0,16(1) stdu 1,-32(1) bl magic nop addi 1,1,32 cntlzw 3,3 ld 0,16(1) srwi 3,3,5 mtlr 0 xori 3,3,0x1 blr .size main,.-main .section .rodata.str1.8,"aMS",@progbits,1 .p2align 3 .LC0: .string "'ere I am JH"
tactcomplabs/xbgas-binutils-gdb
2,940
ld/testsuite/ld-powerpc/pcrelopt.s
.text .globl _start _start: # original PCREL_OPT definition, with second insn immediately after first pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0 lbz 3,0(9) # but we now allow an offset to the second insn pld 22,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) nop 0: lhz 4,0(22) # in fact, it can even be before the "first" insn 0: lha 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0b-(.-8) bne 0b # and of course, other local labels work pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,.L1-(.-8) .L1: lwz 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lwa 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: ld 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lq 14,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lfs 1,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lfd 1,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxsd 30,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxssp 31,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxv 63,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxv 0,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stb 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: sth 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stw 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: std 3,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stq 14,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stfd 1,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stfs 2,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxsd 30,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxssp 31,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxv 63,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxv 0,0(9) #offsets are allowed too pld 9,sym@got@pcrel 0: lbz 3,0x1234(9) .reloc 0b-8,R_PPC64_PCREL_OPT,(.-4)-(0b-8) #and prefix insns as the second insn pld 9,sym@got@pcrel 0: plq 4,0x12345678(9) .reloc 0b-8,R_PPC64_PCREL_OPT,(.-8)-(0b-8) # This should not optimize .extern i .type i,@object pld 9,i@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: ld 0,0(9) # and this should edit from GOT indirect to GOT relative # ie. change the pld to paddi, leaving the lbz as is. pld 7,sym@got@pcrel lbz 6,0(7) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxvp 62,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: lxvp 0,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxvp 62,0(9) pld 9,sym@got@pcrel .reloc .-8,R_PPC64_PCREL_OPT,0f-(.-8) 0: stxvp 0,0(9) .data sym: .space 32
tactcomplabs/xbgas-binutils-gdb
1,703
ld/testsuite/ld-riscv-elf/variant_cc-2.s
.text .variant_cc cc_global_default_def .variant_cc cc_global_default_undef .variant_cc cc_global_default_ifunc .variant_cc cc_global_hidden_def .variant_cc cc_global_hidden_ifunc .variant_cc cc_local2 .variant_cc cc_local2_ifunc .global cc_global_default_def .global cc_global_default_undef .global cc_global_default_ifunc .global cc_global_hidden_def .global cc_global_hidden_ifunc .global nocc_global_default_def .global nocc_global_default_undef .global nocc_global_default_ifunc .global nocc_global_hidden_def .global nocc_global_hidden_ifunc .hidden cc_global_hidden_def .hidden cc_global_hidden_ifunc .hidden nocc_global_hidden_def .hidden nocc_global_hidden_ifunc # .type cc_global_default_ifunc, %gnu_indirect_function # .type cc_global_hidden_ifunc, %gnu_indirect_function .type cc_local2_ifunc, %gnu_indirect_function # .type nocc_global_default_ifunc, %gnu_indirect_function # .type nocc_global_hidden_ifunc, %gnu_indirect_function .type nocc_local2_ifunc, %gnu_indirect_function # cc_global_default_def: # cc_global_default_undef: # cc_global_hidden_def: # cc_global_default_ifunc: # cc_global_hidden_ifunc: cc_local2: cc_local2_ifunc: # nocc_global_default_def: # nocc_global_default_undef: # nocc_global_hidden_def: # nocc_global_default_ifunc: # nocc_global_hidden_ifunc: nocc_local2: nocc_local2_ifunc: call cc_global_default_def call cc_global_default_undef call cc_global_hidden_def call cc_global_default_ifunc call cc_global_hidden_ifunc call cc_local2 call cc_local2_ifunc call nocc_global_default_def call nocc_global_default_undef call nocc_global_hidden_def call nocc_global_default_ifunc call nocc_global_hidden_ifunc call nocc_local2 call nocc_local2_ifunc
tactcomplabs/xbgas-binutils-gdb
1,667
ld/testsuite/ld-riscv-elf/variant_cc-1.s
.text .variant_cc cc_global_default_def .variant_cc cc_global_default_undef .variant_cc cc_global_default_ifunc .variant_cc cc_global_hidden_def .variant_cc cc_global_hidden_ifunc .variant_cc cc_local .variant_cc cc_local_ifunc .global cc_global_default_def .global cc_global_default_undef .global cc_global_default_ifunc .global cc_global_hidden_def .global cc_global_hidden_ifunc .global nocc_global_default_def .global nocc_global_default_undef .global nocc_global_default_ifunc .global nocc_global_hidden_def .global nocc_global_hidden_ifunc .hidden cc_global_hidden_def .hidden cc_global_hidden_ifunc .hidden nocc_global_hidden_def .hidden nocc_global_hidden_ifunc .type cc_global_default_ifunc, %gnu_indirect_function .type cc_global_hidden_ifunc, %gnu_indirect_function .type cc_local_ifunc, %gnu_indirect_function .type nocc_global_default_ifunc, %gnu_indirect_function .type nocc_global_hidden_ifunc, %gnu_indirect_function .type nocc_local_ifunc, %gnu_indirect_function cc_global_default_def: # cc_global_default_undef: cc_global_hidden_def: cc_global_default_ifunc: cc_global_hidden_ifunc: cc_local: cc_local_ifunc: nocc_global_default_def: # nocc_global_default_undef: nocc_global_hidden_def: nocc_global_default_ifunc: nocc_global_hidden_ifunc: nocc_local: nocc_local_ifunc: call cc_global_default_def call cc_global_default_undef call cc_global_hidden_def call cc_global_default_ifunc call cc_global_hidden_ifunc call cc_local call cc_local_ifunc call nocc_global_default_def call nocc_global_default_undef call nocc_global_hidden_def call nocc_global_default_ifunc call nocc_global_hidden_ifunc call nocc_local call nocc_local_ifunc
tactcomplabs/xbgas-binutils-gdb
1,289
ld/testsuite/ld-frv/fdpic3.s
.text .weak _start _start: .global F3 .type F3,@function F3: call HF0 .global HF0 .hidden HF0 .global HF1 .hidden HF1 .global HF2 .hidden HF2 .global HF3 .hidden HF3 .global HF4 .hidden HF4 .global HF5 .hidden HF5 .global HF6 .hidden HF6 .global HF7 .hidden HF7 .global HF8 .hidden HF8 .global HF9 .hidden HF9 .global HFa .hidden HFa .global HFb .hidden HFb .global HFc .hidden HFc HF0: HF1: HF2: HF3: HF4: HF5: HF6: HF7: HF8: HF9: HFa: HFb: HFc: addi gr15, #got12(HF1), gr0 setlos #gotlo(HF2), gr0 setlo #gotlo(HF3), gr0 sethi #gothi(HF3), gr0 addi gr15, #gotfuncdesc12(HF4), gr0 setlos #gotfuncdesclo(HF5), gr0 setlo #gotfuncdesclo(HF6), gr0 sethi #gotfuncdeschi(HF6), gr0 addi gr15, #gotofffuncdesc12(HF7), gr0 setlos #gotofffuncdesclo(HF8), gr0 setlo #gotofffuncdesclo(HF9), gr0 sethi #gotofffuncdeschi(HF9), gr0 addi gr15, #gotoff12(HD1), gr0 setlos #gotofflo(HD2), gr0 setlo #gotofflo(HD3), gr0 sethi #gotoffhi(HD3), gr0 setlo #gotlo(HD4), gr0 sethi #gothi(HD4), gr0 .data .global D3 D3: .word HD0 .global HD0 .hidden HD0 .global HD1 .hidden HD1 .global HD2 .hidden HD2 .global HD3 .hidden HD3 .global HD4 .hidden HD4 HD0: HD1: HD2: HD3: HD4: .picptr funcdesc(HFb) .word HFb .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
1,055
ld/testsuite/ld-frv/fdpic2.s
.text .weak _start _start: .global F2 .type F2,@function F2: call GF0 .global GF0 .global GF1 .global GF2 .global GF3 .global GF4 .global GF5 .global GF6 .global GF7 .global GF8 .global GF9 .global GFa .global GFb .global GFc GF0: GF1: GF2: GF3: GF4: GF5: GF6: GF7: GF8: GF9: GFa: GFb: GFc: addi gr15, #got12(GF1), gr0 setlos #gotlo(GF2), gr0 setlo #gotlo(GF3), gr0 sethi #gothi(GF3), gr0 addi gr15, #gotfuncdesc12(GF4), gr0 setlos #gotfuncdesclo(GF5), gr0 setlo #gotfuncdesclo(GF6), gr0 sethi #gotfuncdeschi(GF6), gr0 addi gr15, #gotofffuncdesc12(GF7), gr0 setlos #gotofffuncdesclo(GF8), gr0 setlo #gotofffuncdesclo(GF9), gr0 sethi #gotofffuncdeschi(GF9), gr0 addi gr15, #gotoff12(GD1), gr0 setlos #gotofflo(GD2), gr0 setlo #gotofflo(GD3), gr0 sethi #gotoffhi(GD3), gr0 setlo #gotlo(GD4), gr0 sethi #gothi(GD4), gr0 .data .global D2 D2: .word GD0 .global GD0 .global GD1 .global GD2 .global GD3 .global GD4 GD0: GD1: GD2: GD3: GD4: .picptr funcdesc(GFb) .word GFb .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
1,926
ld/testsuite/ld-frv/tls-1.s
.section .tbss,"awT",@nobits .align 4 .globl i .type i, @object .size i, 4 i: .zero 4 .align 4 .type l, @object .size l, 4 l: .zero 4 .text .globl _start _start: call #gettlsoff(x) sethi.p #gottlsdeschi(x), gr14 setlo #gottlsdesclo(x), gr14 ldd #tlsdesc(x)@(gr15, gr14), gr8 calll #gettlsoff(x)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(x)), gr8 setlos #gottlsdesclo(x), gr14 calll #gettlsoff(x)@(gr8, gr0) call #gettlsoff(i) sethi.p #gottlsdeschi(i), gr14 setlo #gottlsdesclo(i), gr14 ldd #tlsdesc(i)@(gr15, gr14), gr8 calll #gettlsoff(i)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(i)), gr8 setlos #gottlsdesclo(i), gr14 calll #gettlsoff(i)@(gr8, gr0) call #gettlsoff(l) sethi.p #gottlsdeschi(l), gr14 setlo #gottlsdesclo(l), gr14 ldd #tlsdesc(l)@(gr15, gr14), gr8 calll #gettlsoff(l)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(l)), gr8 setlos #gottlsdesclo(l), gr14 calll #gettlsoff(l)@(gr8, gr0) call #gettlsoff(0) sethi.p #gottlsdeschi(0), gr14 setlo #gottlsdesclo(0), gr14 ldd #tlsdesc(0)@(gr15, gr14), gr8 calll #gettlsoff(0)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(0)), gr8 setlos #gottlsdesclo(0), gr14 calll #gettlsoff(0)@(gr8, gr0) sethi.p #tlsmoffhi(l), gr8 setlo #tlsmofflo(l), gr8 sethi.p #tlsmoffhi(i), gr9 setlo #tlsmofflo(i), gr9 ldi @(gr15, #gottlsoff12(x)), gr9 ldi @(gr15, #gottlsoff12(i)), gr9 ldi @(gr15, #gottlsoff12(l)), gr9 ldi @(gr15, #gottlsoff12(0)), gr9 sethi.p #gottlsoffhi(x), gr14 setlo #gottlsofflo(x), gr14 ld #tlsoff(x)@(gr15, gr14), gr9 sethi.p #gottlsoffhi(i), gr14 setlo #gottlsofflo(i), gr14 ld #tlsoff(i)@(gr15, gr14), gr9 sethi.p #gottlsoffhi(l), gr14 setlo #gottlsofflo(l), gr14 ld #tlsoff(l)@(gr15, gr14), gr9 sethi.p #gottlsoffhi(0), gr14 setlo #gottlsofflo(0), gr14 ld #tlsoff(0)@(gr15, gr14), gr9 .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
1,099
ld/testsuite/ld-frv/fdpic8.s
.text .weak _start _start: .global F8 .type F8,@function F8: call GF0+4 .global GF0 .global GF1 .global GF2 .global GF3 .global GF4 .global GF5 .global GF6 .global GF7 .global GF8 .global GF9 .global GFa .global GFb .global GFc GF0: GF1: GF2: GF3: GF4: GF5: GF6: GF7: GF8: GF9: GFa: GFb: GFc: addi gr15, #got12(GF1+4), gr0 setlos #gotlo(GF2+4), gr0 setlo #gotlo(GF3+4), gr0 sethi #gothi(GF3+4), gr0 addi gr15, #gotfuncdesc12(GF4+4), gr0 setlos #gotfuncdesclo(GF5+4), gr0 setlo #gotfuncdesclo(GF6+4), gr0 sethi #gotfuncdeschi(GF6+4), gr0 addi gr15, #gotofffuncdesc12(GF7+4), gr0 setlos #gotofffuncdesclo(GF8+4), gr0 setlo #gotofffuncdesclo(GF9+4), gr0 sethi #gotofffuncdeschi(GF9+4), gr0 addi gr15, #gotoff12(GD1+4), gr0 setlos #gotofflo(GD2+4), gr0 setlo #gotofflo(GD3+4), gr0 sethi #gotoffhi(GD3+4), gr0 setlo #gotlo(GD4+4), gr0 sethi #gothi(GD4+4), gr0 .data .global D8 D8: .word GD0+4 .global GD0 .global GD1 .global GD2 .global GD3 .global GD4 GD0: GD1: GD2: GD3: GD4: .picptr funcdesc(GFb+4) .word GFb+4 .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
4,979
ld/testsuite/ld-frv/tls-2.s
.section .tbss,"awT",@nobits .align 4 .type l, @object .size l, 4 l: .zero 4 .align 4 .globl i .type i, @object .size i, 4 i: .zero 4 .text .globl _start _start: call #gettlsoff(l+1) call #gettlsoff(l+1+4096) call #gettlsoff(l+1+65536) sethi.p #gottlsdeschi(l+2), gr14 setlo #gottlsdesclo(l+2), gr14 ldd #tlsdesc(l+2)@(gr15, gr14), gr8 calll #gettlsoff(l+2)@(gr8, gr0) sethi.p #gottlsdeschi(l+2+4096), gr14 setlo #gottlsdesclo(l+2+4096), gr14 ldd #tlsdesc(l+2+4096)@(gr15, gr14), gr8 calll #gettlsoff(l+2+4096)@(gr8, gr0) sethi.p #gottlsdeschi(l+2+65536), gr14 setlo #gottlsdesclo(l+2+65536), gr14 ldd #tlsdesc(l+2+65536)@(gr15, gr14), gr8 calll #gettlsoff(l+2+65536)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(l+3)), gr8 setlos #gottlsdesclo(l+3), gr14 calll #gettlsoff(l+3)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(l+3+4096)), gr8 setlos #gottlsdesclo(l+3+4096), gr14 calll #gettlsoff(l+3+4096)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(l+3+65536)), gr8 setlos #gottlsdesclo(l+3+65536), gr14 calll #gettlsoff(l+3+65536)@(gr8, gr0) sethi #tlsmoffhi(l+4), gr9 setlo #tlsmofflo(l+4), gr9 sethi #tlsmoffhi(l+4+4096), gr9 setlo #tlsmofflo(l+4+4096), gr9 sethi #tlsmoffhi(l+4+65536), gr9 setlo #tlsmofflo(l+4+65536), gr9 call #gettlsoff(i+1) call #gettlsoff(i+1+4096) call #gettlsoff(i+1+65536) sethi.p #gottlsdeschi(i+2), gr14 setlo #gottlsdesclo(i+2), gr14 ldd #tlsdesc(i+2)@(gr15, gr14), gr8 calll #gettlsoff(i+2)@(gr8, gr0) sethi.p #gottlsdeschi(i+2+4096), gr14 setlo #gottlsdesclo(i+2+4096), gr14 ldd #tlsdesc(i+2+4096)@(gr15, gr14), gr8 calll #gettlsoff(i+2+4096)@(gr8, gr0) sethi.p #gottlsdeschi(i+2+65536), gr14 setlo #gottlsdesclo(i+2+65536), gr14 ldd #tlsdesc(i+2+65536)@(gr15, gr14), gr8 calll #gettlsoff(i+2+65536)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(i+3)), gr8 setlos #gottlsdesclo(i+3), gr14 calll #gettlsoff(i+3)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(i+3+4096)), gr8 setlos #gottlsdesclo(i+3+4096), gr14 calll #gettlsoff(i+3+4096)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(i+3+65536)), gr8 setlos #gottlsdesclo(i+3+65536), gr14 calll #gettlsoff(i+3+65536)@(gr8, gr0) sethi #tlsmoffhi(i+4), gr9 setlo #tlsmofflo(i+4), gr9 sethi #tlsmoffhi(i+4+4096), gr9 setlo #tlsmofflo(i+4+4096), gr9 sethi #tlsmoffhi(i+4+65536), gr9 setlo #tlsmofflo(i+4+65536), gr9 call #gettlsoff(0+1) call #gettlsoff(0+1+4096) call #gettlsoff(0+1+65536) sethi.p #gottlsdeschi(0+2), gr14 setlo #gottlsdesclo(0+2), gr14 ldd #tlsdesc(0+2)@(gr15, gr14), gr8 calll #gettlsoff(0+2)@(gr8, gr0) sethi.p #gottlsdeschi(0+2+4096), gr14 setlo #gottlsdesclo(0+2+4096), gr14 ldd #tlsdesc(0+2+4096)@(gr15, gr14), gr8 calll #gettlsoff(0+2+4096)@(gr8, gr0) sethi.p #gottlsdeschi(0+2+65536), gr14 setlo #gottlsdesclo(0+2+65536), gr14 ldd #tlsdesc(0+2+65536)@(gr15, gr14), gr8 calll #gettlsoff(0+2+65536)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(0+3)), gr8 setlos #gottlsdesclo(0+3), gr14 calll #gettlsoff(0+3)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(0+3+4096)), gr8 setlos #gottlsdesclo(0+3+4096), gr14 calll #gettlsoff(0+3+4096)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(0+3+65536)), gr8 setlos #gottlsdesclo(0+3+65536), gr14 calll #gettlsoff(0+3+65536)@(gr8, gr0) sethi #tlsmoffhi(0+4), gr9 setlo #tlsmofflo(0+4), gr9 sethi #tlsmoffhi(0+4+4096), gr9 setlo #tlsmofflo(0+4+4096), gr9 sethi #tlsmoffhi(0+4+65536), gr9 setlo #tlsmofflo(0+4+65536), gr9 call #gettlsoff(x+1) call #gettlsoff(x+1+4096) call #gettlsoff(x+1+65536) sethi.p #gottlsdeschi(x+2), gr14 setlo #gottlsdesclo(x+2), gr14 ldd #tlsdesc(x+2)@(gr15, gr14), gr8 calll #gettlsoff(x+2)@(gr8, gr0) sethi.p #gottlsdeschi(x+2+4096), gr14 setlo #gottlsdesclo(x+2+4096), gr14 ldd #tlsdesc(x+2+4096)@(gr15, gr14), gr8 calll #gettlsoff(x+2+4096)@(gr8, gr0) sethi.p #gottlsdeschi(x+2+65536), gr14 setlo #gottlsdesclo(x+2+65536), gr14 ldd #tlsdesc(x+2+65536)@(gr15, gr14), gr8 calll #gettlsoff(x+2+65536)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(x+3)), gr8 setlos #gottlsdesclo(x+3), gr14 calll #gettlsoff(x+3)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(x+3+4096)), gr8 setlos #gottlsdesclo(x+3+4096), gr14 calll #gettlsoff(x+3+4096)@(gr8, gr0) lddi.p @(gr15, #gottlsdesc12(x+3+65536)), gr8 setlos #gottlsdesclo(x+3+65536), gr14 calll #gettlsoff(x+3+65536)@(gr8, gr0) .ifdef static_tls ldi @(gr15, #gottlsoff12(l+1)), gr9 ldi @(gr15, #gottlsoff12(l+1+65536)), gr9 ldi @(gr15, #gottlsoff12(i+1)), gr9 ldi @(gr15, #gottlsoff12(i+1+65536)), gr9 ldi @(gr15, #gottlsoff12(0+1)), gr9 ldi @(gr15, #gottlsoff12(0+1+65536)), gr9 ldi @(gr15, #gottlsoff12(x+1)), gr9 ldi @(gr15, #gottlsoff12(x+1+65536)), gr9 setlos #gottlsofflo(l+1+4096), gr8 ld #tlsoff(l+1+4096)@(gr15, gr8), gr9 sethi #gottlsoffhi(i+1+4096), gr8 setlo #gottlsofflo(i+1+4096), gr8 ld #tlsoff(i+1+4096)@(gr15, gr8), gr9 .endif .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
1,343
ld/testsuite/ld-frv/fdpic4.s
.text .weak _start _start: .global F4 .type F4,@function F4: call PF0 .global PF0 .protected PF0 .global PF1 .protected PF1 .global PF2 .protected PF2 .global PF3 .protected PF3 .global PF4 .protected PF4 .global PF5 .protected PF5 .global PF6 .protected PF6 .global PF7 .protected PF7 .global PF8 .protected PF8 .global PF9 .protected PF9 .global PFa .protected PFa .global PFb .protected PFb .global PFc .protected PFc PF0: PF1: PF2: PF3: PF4: PF5: PF6: PF7: PF8: PF9: PFa: PFb: PFc: addi gr15, #got12(PF1), gr0 setlos #gotlo(PF2), gr0 setlo #gotlo(PF3), gr0 sethi #gothi(PF3), gr0 addi gr15, #gotfuncdesc12(PF4), gr0 setlos #gotfuncdesclo(PF5), gr0 setlo #gotfuncdesclo(PF6), gr0 sethi #gotfuncdeschi(PF6), gr0 addi gr15, #gotofffuncdesc12(PF7), gr0 setlos #gotofffuncdesclo(PF8), gr0 setlo #gotofffuncdesclo(PF9), gr0 sethi #gotofffuncdeschi(PF9), gr0 addi gr15, #gotoff12(PD1), gr0 setlos #gotofflo(PD2), gr0 setlo #gotofflo(PD3), gr0 sethi #gotoffhi(PD3), gr0 setlo #gotlo(PD4), gr0 sethi #gothi(PD4), gr0 .data .global D4 D4: .word PD0 .global PD0 .protected PD0 .global PD1 .protected PD1 .global PD2 .protected PD2 .global PD3 .protected PD3 .global PD4 .protected PD4 PD0: PD1: PD2: PD3: PD4: .picptr funcdesc(PFb) .word PFb .section .note.GNU-stack
tactcomplabs/xbgas-binutils-gdb
1,133
ld/testsuite/ld-tic6x/unwind-4.s
.cfi_sections .c6xabi.exidx .text # out of line table entry .global _start .type _start, %function _start: .cfi_startproc .cfi_offset B3, 0 .cfi_def_cfa_offset 8 nop .p2align 6 .cfi_endproc .personalityindex 3 .handlerdata .word 0 .endp # entry that can be merged .cfi_startproc .cfi_offset B3, 0 .cfi_def_cfa_offset 8 nop .p2align 6 .cfi_endproc .personalityindex 3 .endp # Section that will be placed first .section .before, "xa" .type _before, %function _before: .cfi_startproc .cfi_offset B3, 0 .cfi_def_cfa_offset 8 nop .p2align 6 .cfi_endproc .personalityindex 3 .endp # section that will be placed last .section .after, "xa" .global __c6xabi_unwind_cpp_pr3 .type __c6xabi_unwind_cpp_pr3, %function __c6xabi_unwind_cpp_pr3: # entry that can be merged .cfi_startproc .cfi_offset B3, 0 .cfi_def_cfa_offset 8 nop .cfi_endproc .personalityindex 3 .endp # final function is cantunwind, so output table size is smaller # than sum of input sections .global foo .type foo, %function foo: .cfi_startproc nop .p2align 6 .cfi_endproc .cantunwind .endp .section .far .word 0
tactcomplabs/xbgas-binutils-gdb
1,037
ld/testsuite/ld-pe/secidx1.s
.text .ascii ">>>>" pre04: .ascii "<<<<" .ascii ">>>>>" pre0d: .ascii "<<<" .ascii ">>>>>>" pre16: .ascii "<<" .ascii ">>>>>>>" pre1f: .ascii "<" .data .ascii ">>>>" sam04: .ascii "<<<<" .ascii ">>>>>" sam0d: .ascii "<<<" .ascii ">>>>>>" sam16: .ascii "<<" .ascii ">>>>>>>" sam1f: .ascii "<" .ascii ">>>>" .secidx pre04 .byte 0x11 .secidx pre0d .byte 0x11 .secidx pre16 .byte 0x11 .secidx pre1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secidx sam04 .byte 0x11 .secidx sam0d .byte 0x11 .secidx sam16 .byte 0x11 .secidx sam1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secidx nex04 .byte 0x11 .secidx nex0d .byte 0x11 .secidx nex16 .byte 0x11 .secidx nex1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secidx ext1 .byte 0x11 .secidx ext2 .byte 0x11 .secidx ext3 .byte 0x11 .ascii "<<<<<<<<" .section .rdata .ascii ">>>>" nex04: .ascii "<<<<" .ascii ">>>>>" nex0d: .ascii "<<<" .ascii ">>>>>>" nex16: .ascii "<<" .ascii ">>>>>>>" nex1f: .ascii "<" .ascii ">>>>" .p2align 4,0
tactcomplabs/xbgas-binutils-gdb
1,099
ld/testsuite/ld-pe/secrel1.s
.text .ascii ">>>>" pre04: .ascii "<<<<" .ascii ">>>>>" pre0d: .ascii "<<<" .ascii ">>>>>>" pre16: .ascii "<<" .ascii ">>>>>>>" pre1f: .ascii "<" .data .ascii ">>>>" sam04: .ascii "<<<<" .ascii ">>>>>" sam0d: .ascii "<<<" .ascii ">>>>>>" sam16: .ascii "<<" .ascii ">>>>>>>" sam1f: .ascii "<" .ascii ">>>>" .secrel32 pre04 .byte 0x11 .secrel32 pre0d .byte 0x11 .secrel32 pre16 .byte 0x11 .secrel32 pre1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secrel32 sam04 .byte 0x11 .secrel32 sam0d .byte 0x11 .secrel32 sam16 .byte 0x11 .secrel32 sam1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secrel32 nex04 .byte 0x11 .secrel32 nex0d .byte 0x11 .secrel32 nex16 .byte 0x11 .secrel32 nex1f .byte 0x11 .ascii "<<<<<<<<" .ascii ">>>>" .secrel32 ext24 .byte 0x11 .secrel32 ext2d .byte 0x11 .secrel32 ext36 .byte 0x11 .secrel32 ext3f .byte 0x11 .ascii "<<<<<<<<" .section .rdata .ascii ">>>>" nex04: .ascii "<<<<" .ascii ">>>>>" nex0d: .ascii "<<<" .ascii ">>>>>>" nex16: .ascii "<<" .ascii ">>>>>>>" nex1f: .ascii "<" .ascii ">>>>" .p2align 4,0
tactcomplabs/xbgas-binutils-gdb
1,224
ld/testsuite/ld-h8300/relax-7a.s
.h8300s # relax expected .global _start .section .text.func1,"ax",@progbits .align 1 _start: sub.l er0,er0 sub.l er2,er2 mov.l #var3,er1 mov.l @(table+4:32,er2),er2 jmp @er2 .section .rodata.tab,"a",@progbits .align 2 table: .long .L20 .long .L21 .long .L22 .long .L30noRelax .long .L31noRelax .long .L32noRelax .long .L100Relax .section .text.func1 .L20: mov.b @(var1+1:32,er0), r2l mov.b r2l,@(var1+1:32,er0) mov.b @(1:32,er1), r2l mov.b r2l,@(1:32,er1) rts .L21: mov.w @(var2+2:32,er0), r2 mov.w r2,@(var2+2:32,er0) mov.w @(2:32,er1), r2 mov.w r2,@(2:32,er1) rts .L22: mov.l @(var3+4:32,er0), er2 mov.l er2,@(var3+4:32,er0) mov.l @(4:32,er1), er2 mov.l er2,@(4:32,er1) rts .L100Relax: mov.l #0x01007800,er0 # part of MOV.L @(d:24,ERs),ERd opcode mov.w @var2+2:32,r1 rts # no relax allowed: .L30noRelax: mov.b @(var4+1:32,er0), r2l mov.b r2l,@(var4+1:32,er0) mov.b @(0x8000:32,er1), r2l mov.b r2l,@(0x8000:32,er1) rts .L31noRelax: mov.w @(var5+2:32,er0), r2 mov.w r2,@(var5+2:32,er0) mov.w @(0x8000:32,er1), r2 mov.w r2,@(0x8000:32,er1) rts .L32noRelax: mov.l @(var6+4:32,er0), er2 mov.l er2,@(var6+4:32,er0) mov.l @(0x8000:32,er1), er2 mov.l er2,@(0x8000:32,er1) rts
tactcomplabs/xbgas-binutils-gdb
1,402
ld/testsuite/ld-h8300/relax-4.s
; Relaxation is possible for following bit manipulation instructions ; BAND, BCLR, BIAND, BILD, BIOR, BIST, BIXOR, BLD, BNOT, BOR, BSET, BST, BTST, BXOR .h8300s .globl _start _start: # s3-s6 aren't valid 16-bit addresses. mov.b #0x3,r0l mov.b #0x5,r2l ; ; Relaxation of aa:16 ; bset r0l,@s10:16 bset r2l,@s9:16 btst r2l,@s10:16 btst r0l,@s9:16 bset #5,@s1:16 bset #5,@s2:16 bset #5,@s7:16 bset #5,@s8:16 bset #5,@s9:16 bset #5,@s10:16 band #5,@s1:16 band #5,@s2:16 band #5,@s7:16 band #5,@s8:16 band #5,@s9:16 band #5,@s10:16 ; ; Relaxation of aa:32 ; bset r2l,@s10:32 bset r0l,@s9:32 btst r0l,@s10:32 btst r2l,@s9:32 bset #6,@s1:32 bset #6,@s2:32 bset #6,@s3:32 bset #6,@s4:32 bset #6,@s5:32 bset #6,@s6:32 bset #6,@s7:32 bset #6,@s8:32 bset #6,@s9:32 bset #6,@s10:32 band #6,@s1:32 band #6,@s2:32 band #6,@s3:32 band #6,@s4:32 band #6,@s5:32 band #6,@s6:32 band #6,@s7:32 band #6,@s8:32 band #6,@s9:32 band #6,@s10:32 .equ s1,0 .equ s2,0x7fff .equ s3,0x8000 .equ s4,0xff00 .equ s5,0xffff00 .equ s6,0xffff7fff .equ s7,0xffff8000 .equ s8,0xfffffeff .equ s9,0xffffff00 .equ s10,0xffffffff .end
tactcomplabs/xbgas-binutils-gdb
1,145
ld/testsuite/ld-h8300/relax-5.s
; Relaxation is possible from @aa:32 to @aa:16 for following instructions ; ldc.w @@aa:32,ccr ; stc.w ccr,@@aa:32 ; ldc.w @aa:32,exr ; stc.w exr,@aa:32 .h8300s .globl _start ; ; Relaxation of aa:32 ; _start: ldc @s1:32,ccr ldc @s2:32,ccr ldc @s3:32,ccr ldc @s4:32,ccr ldc @s5:32,ccr ldc @s6:32,ccr ldc @s7:32,ccr ldc @s8:32,ccr ldc @s9:32,ccr ldc @s10:32,ccr stc ccr,@s1:32 stc ccr,@s2:32 stc ccr,@s3:32 stc ccr,@s4:32 stc ccr,@s5:32 stc ccr,@s6:32 stc ccr,@s7:32 stc ccr,@s8:32 stc ccr,@s9:32 stc ccr,@s10:32 ldc @s1:32,exr ldc @s2:32,exr ldc @s3:32,exr ldc @s4:32,exr ldc @s5:32,exr ldc @s6:32,exr ldc @s7:32,exr ldc @s8:32,exr ldc @s9:32,exr ldc @s10:32,exr stc exr,@s1:32 stc exr,@s2:32 stc exr,@s3:32 stc exr,@s4:32 stc exr,@s5:32 stc exr,@s6:32 stc exr,@s7:32 stc exr,@s8:32 stc exr,@s9:32 stc exr,@s10:32 .equ s1,0 .equ s2,0x7fff .equ s3,0x8000 .equ s4,0xff00 .equ s5,0xffff00 .equ s6,0xffff7fff .equ s7,0xffff8000 .equ s8,0xfffffeff .equ s9,0xffffff00 .equ s10,0xffffffff .end
tactcomplabs/xbgas-binutils-gdb
1,448
ld/testsuite/ld-elf/linux-x86.S
.text .globl _start .type _start,@function .p2align 4 _start: xorl %ebp, %ebp #ifdef __LP64__ popq %rdi movq %rsp, %rsi andq $~15, %rsp #elif defined __x86_64__ mov (%rsp),%edi addl $4,%esp movl %esp, %esi andl $~15, %esp #else popl %esi movl %esp, %ecx andl $~15, %esp subl $8,%esp pushl %ecx pushl %esi #endif call main hlt .type syscall, @function .globl syscall .p2align 4 syscall: #ifdef __x86_64__ movq %rdi, %rax /* Syscall number -> rax. */ movq %rsi, %rdi /* shift arg1 - arg5. */ movq %rdx, %rsi movq %rcx, %rdx movq %r8, %r10 movq %r9, %r8 movq 8(%rsp),%r9 /* arg6 is on the stack. */ syscall /* Do the system call. */ #else push %ebp push %edi push %esi push %ebx mov 0x2c(%esp),%ebp mov 0x28(%esp),%edi mov 0x24(%esp),%esi mov 0x20(%esp),%edx mov 0x1c(%esp),%ecx mov 0x18(%esp),%ebx mov 0x14(%esp),%eax int $0x80 pop %ebx pop %esi pop %edi pop %ebp #endif ret /* Return to caller. */ .size syscall, .-syscall .section .note.GNU-stack,"",@progbits .section ".note.gnu.property", "a" #ifdef __LP64__ .p2align 3 #else .p2align 2 #endif .long 1f - 0f /* name length */ .long 5f - 2f /* data length */ .long 5 /* note type */ 0: .asciz "GNU" /* vendor name */ 1: #ifdef __LP64__ .p2align 3 #else .p2align 2 #endif 2: .long 0xc0000002 /* pr_type. */ .long 4f - 3f /* pr_datasz. */ 3: .long 0x2 4: #ifdef __LP64__ .p2align 3 #else .p2align 2 #endif 5:
tactcomplabs/xbgas-binutils-gdb
1,642
ld/testsuite/ld-elf/retain1.s
.global discard0 .section .bss.discard0,"aw" .type discard0, %object discard0: .zero 2 .global discard1 .section .bss.discard1,"aw" .type discard1, %object discard1: .zero 2 .global discard2 .section .data.discard2,"aw" .type discard2, %object discard2: .word 1 .section .bss.sdiscard0,"aw" .type sdiscard0, %object sdiscard0: .zero 2 .section .bss.sdiscard1,"aw" .type sdiscard1, %object sdiscard1: .zero 2 .section .data.sdiscard2,"aw" .type sdiscard2, %object sdiscard2: .word 1 .section .text.fndiscard0,"ax" .global fndiscard0 .type fndiscard0, %function fndiscard0: .word 0 .global retain0 .section .bss.retain0,"awR" .type retain0, %object retain0: .zero 2 .global retain1 .section .bss.retain1,"awR" .type retain1, %object retain1: .zero 2 .global retain2 .section .data.retain2,"awR" .type retain2, %object retain2: .word 1 .section .bss.sretain0,"awR" .type sretain0, %object sretain0: .zero 2 .section .bss.sretain1,"awR" .type sretain1, %object sretain1: .zero 2 .section .data.sretain2,"aRw" .type sretain2, %object sretain2: .word 1 .section .text.fnretain1,"Rax" .global fnretain1 .type fnretain1, %function fnretain1: .word 0 .section .text.fndiscard2,"ax" .global fndiscard2 .type fndiscard2, %function fndiscard2: .word 0 .section .bss.lsretain0,"awR" .type lsretain0.2, %object lsretain0.2: .zero 2 .section .bss.lsretain1,"aRw" .type lsretain1.1, %object lsretain1.1: .zero 2 .section .data.lsretain2,"aRw" .type lsretain2.0, %object lsretain2.0: .word 1 .section .text._start,"ax" .global _start .type _start, %function _start: .word 0
tactcomplabs/xbgas-binutils-gdb
5,556
ld/testsuite/ld-elf/compress1.s
/* This testcase is derived from a similar test in GDB. Copyright (C) 2008-2022 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, see <http://www.gnu.org/licenses/>. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu2 .type func_cu2, %function func_cu2: .Lbegin_func_cu2: .int 0 .Lend_func_cu2: .size func_cu2, .-func_cu2 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu2 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu2\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu2 /* DW_AT_low_pc */ .4byte .Lend_func_cu2 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu2 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu2 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .section .debug_pubnames,"",%progbits .4byte 0x19 .2byte 0x2 .4byte .Lcu1_begin .4byte 0x43 .4byte 0x25 .string "func_cu2" .4byte 0x0 .section .debug_aranges,"",%progbits .4byte 0x1c .2byte 0x2 .4byte .Lcu1_begin .byte 0x4 .byte 0x0 .2byte 0x0 .2byte 0x0 .4byte .Lbegin_text1 .4byte .Lbegin_text1-.Lend_text1 .4byte 0x0 .4byte 0x0
tactcomplabs/xbgas-binutils-gdb
2,038
ld/testsuite/ld-elf/eh4.s
.text .align 512 .globl foo .type foo, @function foo: .LFB1: subq $72, %rsp .LCFI1: xorl %eax, %eax movq %rsp, %rdi call bar@PLT addq $72, %rsp ret .LFE1: .size foo, .-foo .globl bar .type bar, @function bar: .LFB2: subq $72, %rsp .LCFI2: xorl %eax, %eax movq %rsp, %rdi call bar@PLT addq $72, %rsp ret .LFE2: .size bar, .-bar .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 # Length of Common Information Entry .LSCIE1: .long 0x0 # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "zR\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -8 # CIE Data Alignment Factor .byte 0x10 # CIE RA Column .uleb128 0x1 # Augmentation size .byte 0x1b # FDE Encoding (pcrel sdata4) .byte 0xc # DW_CFA_def_cfa .uleb128 0x7 .uleb128 0x8 .byte 0x90 # DW_CFA_offset, column 0x10 .uleb128 0x1 .align 8 .LECIE1: .LSFDE1: .long .LEFDE1-.LASFDE1 # FDE Length .LASFDE1: .long .LASFDE1-.Lframe1 # FDE CIE offset .long .LFB1-. # FDE initial location .long .LFE1-.LFB1 # FDE address range .uleb128 0x0 # Augmentation size .byte 0x1 # DW_CFA_set_loc .long .LCFI1-. .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x50 .align 8 .LEFDE1: .Lframe2: .long .LECIE2-.LSCIE2 # Length of Common Information Entry .LSCIE2: .long 0x0 # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "zR\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -8 # CIE Data Alignment Factor .byte 0x10 # CIE RA Column .uleb128 0x1 # Augmentation size .byte 0x1b # FDE Encoding (pcrel sdata4) .byte 0xc # DW_CFA_def_cfa .uleb128 0x7 .uleb128 0x8 .byte 0x90 # DW_CFA_offset, column 0x10 .uleb128 0x1 .align 8 .LECIE2: .LSFDE2: .long .LEFDE2-.LASFDE2 # FDE Length .LASFDE2: .long .LASFDE2-.Lframe2 # FDE CIE offset .long .LFB2-. # FDE initial location .long .LFE2-.LFB2 # FDE address range .uleb128 0x0 # Augmentation size .byte 0x1 # DW_CFA_set_loc .long .LCFI2-. .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x50 .align 8 .LEFDE2: .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,756
ld/testsuite/ld-aarch64/variant_pcs-1.s
.text .variant_pcs f_spec_global_default_def .variant_pcs f_spec_global_default_undef .variant_pcs f_spec_global_hidden_def .variant_pcs f_spec_local .variant_pcs f_spec_global_default_ifunc .variant_pcs f_spec_global_hidden_ifunc .variant_pcs f_spec_local_ifunc .global f_spec_global_default_def .global f_spec_global_default_undef .global f_spec_global_hidden_def .global f_spec_global_default_ifunc .global f_spec_global_hidden_ifunc .global f_base_global_default_def .global f_base_global_default_undef .global f_base_global_hidden_def .global f_base_global_default_ifunc .global f_base_global_hidden_ifunc .hidden f_spec_global_hidden_def .hidden f_spec_global_hidden_ifunc .hidden f_base_global_hidden_def .hidden f_base_global_hidden_ifunc .type f_spec_global_default_ifunc, %gnu_indirect_function .type f_spec_global_hidden_ifunc, %gnu_indirect_function .type f_spec_local_ifunc, %gnu_indirect_function .type f_base_global_default_ifunc, %gnu_indirect_function .type f_base_global_hidden_ifunc, %gnu_indirect_function .type f_base_local_ifunc, %gnu_indirect_function f_spec_global_default_def: f_spec_global_hidden_def: f_spec_local: f_base_global_default_def: f_base_global_hidden_def: f_base_local: f_spec_global_default_ifunc: f_spec_global_hidden_ifunc: f_spec_local_ifunc: f_base_global_default_ifunc: f_base_global_hidden_ifunc: f_base_local_ifunc: bl f_spec_global_default_def bl f_spec_global_default_undef bl f_spec_global_hidden_def bl f_spec_local bl f_base_global_default_def bl f_base_global_default_undef bl f_base_global_hidden_def bl f_base_local bl f_spec_global_default_ifunc bl f_spec_global_hidden_ifunc bl f_spec_local_ifunc bl f_base_global_default_ifunc bl f_base_global_hidden_ifunc bl f_base_local_ifunc