diff options
Diffstat (limited to 'ld/testsuite/ld-ia64')
-rw-r--r-- | ld/testsuite/ld-ia64/local1.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-ia64/local1.map | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-ia64/local1.s | 21 |
3 files changed, 36 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ia64/local1.d b/ld/testsuite/ld-ia64/local1.d new file mode 100644 index 0000000..728faa2 --- /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 0000000..904d025 --- /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 0000000..2eacae1 --- /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# |