--- /dev/null
+#ld: -shared --version-script local1.map
+#readelf: -s --wide
+#target: *-*-linux*
+
+#...
+ .*: [0-9a-f]* +[0-9a-f]+ +OBJECT +LOCAL +DEFAULT +[0-9] +foo
+#...
--- /dev/null
+{
+global:
+ *;
+local:
+ foo;
+};
--- /dev/null
+ .globl foo
+ .protected foo
+ .type foo,%object
+ .data
+foo:
+ .long 0
--- /dev/null
+#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
+#...
--- /dev/null
+{
+global:
+ *;
+local:
+ hidden;
+};
--- /dev/null
+ .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#