From 1448fa32275a8686debba9323308841480c33fc7 Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Thu, 28 Nov 2002 08:37:15 +0000 Subject: * elf32-sh.c (sh_elf_relocate_section): Don't complain about unresolved debugging relocs in dynamic applications. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * ld-sh/refdbg-0-dso.d: New test. * ld-sh/refdbg-1.d: Likewise. * ld-sh/refdbg.s: Likewise. * ld-sh/refdbglib.s: Likewise. --- ld/testsuite/ld-sh/refdbg-0-dso.d | 9 +++++++++ ld/testsuite/ld-sh/refdbg-1.d | 10 ++++++++++ ld/testsuite/ld-sh/refdbg.s | 11 +++++++++++ ld/testsuite/ld-sh/refdbglib.s | 8 ++++++++ 4 files changed, 38 insertions(+) create mode 100644 ld/testsuite/ld-sh/refdbg-0-dso.d create mode 100644 ld/testsuite/ld-sh/refdbg-1.d create mode 100644 ld/testsuite/ld-sh/refdbg.s create mode 100644 ld/testsuite/ld-sh/refdbglib.s (limited to 'ld/testsuite/ld-sh') diff --git a/ld/testsuite/ld-sh/refdbg-0-dso.d b/ld/testsuite/ld-sh/refdbg-0-dso.d new file mode 100644 index 0000000..c38fe3e --- /dev/null +++ b/ld/testsuite/ld-sh/refdbg-0-dso.d @@ -0,0 +1,9 @@ +#source: refdbglib.s +#as: -little +#ld: -shared -EL +#objdump: -drj.text +#target: sh*-*-linux* sh*-*-netbsd* + +.*: +file format elf32-sh.* + +#pass diff --git a/ld/testsuite/ld-sh/refdbg-1.d b/ld/testsuite/ld-sh/refdbg-1.d new file mode 100644 index 0000000..461788e --- /dev/null +++ b/ld/testsuite/ld-sh/refdbg-1.d @@ -0,0 +1,10 @@ +#source: refdbg.s +#as: -little +#ld: -EL tmpdir/refdbg-0-dso.so +#objdump: -sj.debug_info +#target: sh*-*-linux* sh*-*-netbsd* + +.*: +file format elf32-sh.* + +Contents of section \.debug_info: + 0+0 0+0 +.* diff --git a/ld/testsuite/ld-sh/refdbg.s b/ld/testsuite/ld-sh/refdbg.s new file mode 100644 index 0000000..129d689 --- /dev/null +++ b/ld/testsuite/ld-sh/refdbg.s @@ -0,0 +1,11 @@ + .text + .align 2 + .globl _start + .type _start,@function +_start: + rts + nop + + .comm foo,4,4 + .section .debug_info,"",@progbits + .ualong foo diff --git a/ld/testsuite/ld-sh/refdbglib.s b/ld/testsuite/ld-sh/refdbglib.s new file mode 100644 index 0000000..31244ac --- /dev/null +++ b/ld/testsuite/ld-sh/refdbglib.s @@ -0,0 +1,8 @@ + .text + .global foo + .data + .align 2 + .type foo, @object + .size foo, 4 +foo: + .long 1 -- cgit v1.1