[AArch64] Use SYMBOL_REFERENCES_LOCAL in one symbol check
[deliverable/binutils-gdb.git] / ld / testsuite / ld-aarch64 / pcrel.s
index df542ef5deea7e065c8efc3836b53bc56dd11e95..c5e18d019e4e802273bcbd88b232699fa2f582d7 100644 (file)
@@ -1,3 +1,4 @@
+       .hidden global_b
        .text
        .align 2
 main:
@@ -18,3 +19,8 @@ main:
        .word   global_a - .
        .xword  global_a - .
 
+       # Defined global symbol may bind externally because of copy relocation,
+       # while defined hidden symbol binds locally.  LD should be able to
+       # differenciate this.
+       adrp    x0, :pg_hi21:global_b
+       .xword  global_b - .
This page took 0.025334 seconds and 4 git commands to generate.