From dfc8b031068927d78186ae898196c70149630315 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 7 Oct 2009 18:33:20 +0000 Subject: [PATCH] Checked in the missing testcases. --- ld/testsuite/ld-elf/local1.d | 7 +++++++ ld/testsuite/ld-elf/local1.map | 6 ++++++ ld/testsuite/ld-elf/local1.s | 6 ++++++ ld/testsuite/ld-ia64/local1.d | 9 +++++++++ ld/testsuite/ld-ia64/local1.map | 6 ++++++ ld/testsuite/ld-ia64/local1.s | 21 +++++++++++++++++++++ 6 files changed, 55 insertions(+) create mode 100644 ld/testsuite/ld-elf/local1.d create mode 100644 ld/testsuite/ld-elf/local1.map create mode 100644 ld/testsuite/ld-elf/local1.s create mode 100644 ld/testsuite/ld-ia64/local1.d create mode 100644 ld/testsuite/ld-ia64/local1.map create mode 100644 ld/testsuite/ld-ia64/local1.s diff --git a/ld/testsuite/ld-elf/local1.d b/ld/testsuite/ld-elf/local1.d new file mode 100644 index 00000000000..5957d8f4b63 --- /dev/null +++ b/ld/testsuite/ld-elf/local1.d @@ -0,0 +1,7 @@ +#ld: -shared --version-script local1.map +#readelf: -s --wide +#target: *-*-linux* + +#... + .*: [0-9a-f]* +[0-9a-f]+ +OBJECT +LOCAL +DEFAULT +[0-9] +foo +#... diff --git a/ld/testsuite/ld-elf/local1.map b/ld/testsuite/ld-elf/local1.map new file mode 100644 index 00000000000..1e2aa8ce33b --- /dev/null +++ b/ld/testsuite/ld-elf/local1.map @@ -0,0 +1,6 @@ +{ +global: + *; +local: + foo; +}; diff --git a/ld/testsuite/ld-elf/local1.s b/ld/testsuite/ld-elf/local1.s new file mode 100644 index 00000000000..0122efa4d69 --- /dev/null +++ b/ld/testsuite/ld-elf/local1.s @@ -0,0 +1,6 @@ + .globl foo + .protected foo + .type foo,%object + .data +foo: + .long 0 diff --git a/ld/testsuite/ld-ia64/local1.d b/ld/testsuite/ld-ia64/local1.d new file mode 100644 index 00000000000..728faa2f619 --- /dev/null +++ b/ld/testsuite/ld-ia64/local1.d @@ -0,0 +1,9 @@ +#as: -x +#ld: -shared --version-script local1.map +#readelf: -s --wide + +#... + .*: [0-9a-f]* +[0-9a-f]+ +FUNC +LOCAL +DEFAULT +[0-9] +hidden +#... + .*: [0-9a-f]* +[0-9a-f]+ +FUNC +LOCAL +DEFAULT +[0-9] +hidden +#... diff --git a/ld/testsuite/ld-ia64/local1.map b/ld/testsuite/ld-ia64/local1.map new file mode 100644 index 00000000000..904d02541f9 --- /dev/null +++ b/ld/testsuite/ld-ia64/local1.map @@ -0,0 +1,6 @@ +{ +global: + *; +local: + hidden; +}; diff --git a/ld/testsuite/ld-ia64/local1.s b/ld/testsuite/ld-ia64/local1.s new file mode 100644 index 00000000000..2eacae11880 --- /dev/null +++ b/ld/testsuite/ld-ia64/local1.s @@ -0,0 +1,21 @@ + .pred.safe_across_calls p1-p5,p16-p63 + .global foo# + .section .sdata,"aw",@progbits + .align 8 + .type foo#, @object + .size foo#, 8 +foo: + data8 @fptr(hidden#) + .text + .align 16 + .global hidden# + .hidden hidden# + .proc hidden# +hidden: + .prologue + .body + .bbb + nop 0 + nop 0 + br.ret.sptk.many b0 + .endp hidden# -- 2.30.2