diff options
author | Nick Clifton <nickc@redhat.com> | 2008-12-23 09:01:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-12-23 09:01:51 +0000 |
commit | 0f88be7a13937526f4789565a7dee988bf1369d5 (patch) | |
tree | dec9b5642bf6f5910809de144c2a28886f63dcf5 /ld/testsuite/ld-i386 | |
parent | 5995b57073ad5990e2f63c7f65c0a6c27cad55a9 (diff) | |
download | gdb-0f88be7a13937526f4789565a7dee988bf1369d5.zip gdb-0f88be7a13937526f4789565a7dee988bf1369d5.tar.gz gdb-0f88be7a13937526f4789565a7dee988bf1369d5.tar.bz2 |
Remove STT_IFUNC support.
Diffstat (limited to 'ld/testsuite/ld-i386')
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/ifunc.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/ifunc.s | 128 |
3 files changed, 0 insertions, 143 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 0446f18..6f75f3a 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -138,4 +138,3 @@ run_dump_test "hidden3" run_dump_test "protected1" run_dump_test "protected2" run_dump_test "protected3" -run_dump_test "ifunc" diff --git a/ld/testsuite/ld-i386/ifunc.d b/ld/testsuite/ld-i386/ifunc.d deleted file mode 100644 index f5a7584..0000000 --- a/ld/testsuite/ld-i386/ifunc.d +++ /dev/null @@ -1,14 +0,0 @@ -#name: Generation of dynamic relocs for STT_IFUNC symbols -#source: ifunc.s -#as: --32 -#ld: -melf_i386 -lc --defsym _start=0 -L/usr/lib -#readelf: --relocs --syms - -Relocation section '.rel.ifunc.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - +Offset +Info +Type +Sym.Value +Sym. Name -[0-9a-f]+ 0+0202 R_386_PC32 func\(\) func -[0-9a-f]+ 0+0102 R_386_PC32 long_fun\(\) long_func_name -#... - ..: [0-9a-f]+ .. IFUNC GLOBAL DEFAULT .. long_func_name - ..: [0-9a-f]+ .. IFUNC GLOBAL DEFAULT .. func -#pass diff --git a/ld/testsuite/ld-i386/ifunc.s b/ld/testsuite/ld-i386/ifunc.s deleted file mode 100644 index 3f34cfb..0000000 --- a/ld/testsuite/ld-i386/ifunc.s +++ /dev/null @@ -1,128 +0,0 @@ - .file "ifunc.c" -#APP - .type func, %indirect_function - .type long_func_name, %indirect_function - .section .rodata.str1.1,"aMS",@progbits,1 -.LC0: - .string "arg is %d\n" -#NO_APP - .text - .p2align 4,,15 -.globl bar - .type bar, @function -bar: - pushl %ebp - movl %esp, %ebp - subl $8, %esp - movl 8(%ebp), %eax - movl $.LC0, (%esp) - movl %eax, 4(%esp) - call printf - leave - ret - .size bar, .-bar - .section .rodata.str1.1 -.LC1: - .string "main: calling func" - .section .rodata.str1.4,"aMS",@progbits,1 - .align 4 -.LC2: - .string "main: func finished, calling long_func_name" - .section .rodata.str1.1 -.LC3: - .string "main: long_func_name finished" - .text - .p2align 4,,15 -.globl main - .type main, @function -main: - leal 4(%esp), %ecx - andl $-16, %esp - pushl -4(%ecx) - pushl %ebp - movl %esp, %ebp - pushl %ecx - subl $4, %esp - movl $.LC1, (%esp) - call puts - call func - movl $.LC2, (%esp) - call puts - call long_func_name - movl $.LC3, (%esp) - call puts - addl $4, %esp - xorl %eax, %eax - popl %ecx - popl %ebp - leal -4(%ecx), %esp - ret - .size main, .-main - .p2align 4,,15 -.globl long_func_name - .type long_func_name, @function -long_func_name: - pushl %ebp - movl %esp, %ebp - subl $8, %esp - call rand - movl $func0, %edx - testl %eax, %eax - jne .L7 - movl $func1, %edx -.L7: - movl %edx, %eax - leave - ret - .size long_func_name, .-long_func_name - .p2align 4,,15 -.globl func - .type func, @function -func: - pushl %ebp - movl %esp, %ebp - subl $8, %esp - call rand - movl $func0, %edx - testl %eax, %eax - jne .L12 - movl $func1, %edx -.L12: - movl %edx, %eax - leave - ret - .size func, .-func - .section .rodata.str1.1 -.LC4: - .string "func1\n" - .text - .p2align 4,,15 -.globl func1 - .type func1, @function -func1: - pushl %ebp - movl %esp, %ebp - subl $8, %esp - movl $.LC4, (%esp) - call puts - leave - ret - .size func1, .-func1 - .section .rodata.str1.1 -.LC5: - .string "func0\n" - .text - .p2align 4,,15 -.globl func0 - .type func0, @function -func0: - pushl %ebp - movl %esp, %ebp - subl $8, %esp - movl $.LC5, (%esp) - call puts - leave - ret - .size func0, .-func0 - .ident "GCC: (GNU) 4.3.0 20080428 (Red Hat 4.3.0-8)" - .section .note.GNU-stack,"",@progbits |