diff options
Diffstat (limited to 'ld/testsuite/ld-elfvsb')
-rw-r--r-- | ld/testsuite/ld-elfvsb/hidden2.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/hidden2.ld | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/hidden2.s | 4 |
3 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvsb/hidden2.d b/ld/testsuite/ld-elfvsb/hidden2.d new file mode 100644 index 0000000..25cfa4d --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.d @@ -0,0 +1,9 @@ +#source: hidden2.s +#ld: -shared -T hidden2.ld +#readelf: -Ds +# It is also ok to remove this symbol, but we currently make it local. + +Symbol table for image: +#... +[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 NOTYPE LOCAL HIDDEN +ABS foo +#pass diff --git a/ld/testsuite/ld-elfvsb/hidden2.ld b/ld/testsuite/ld-elfvsb/hidden2.ld new file mode 100644 index 0000000..1e4a2b0 --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.ld @@ -0,0 +1,6 @@ +SECTIONS +{ + . = 0x1000; + PROVIDE (foo = .); + .data : { *(.data) } +} diff --git a/ld/testsuite/ld-elfvsb/hidden2.s b/ld/testsuite/ld-elfvsb/hidden2.s new file mode 100644 index 0000000..66af070 --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.s @@ -0,0 +1,4 @@ + .data + .hidden foo + .global foo + .word foo |