]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: bpf: update to new BPF relocations
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 26 Apr 2023 17:22:14 +0000 (19:22 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 26 Apr 2023 17:22:14 +0000 (19:22 +0200)
This patch updates the BPF GNU sim testsuite in order to match the new
BPF relocations introduced in binutils in a recent patch [1].

[1] https://sourceware.org/pipermail/binutils/2023-March/126429.html

sim/testsuite/bpf/testutils.inc

index d3d6b17b5b61d6e1925ade6c480667ba47ee829b..ce5c55217e739023b1f785d55d3bbdf4a25c658e 100644 (file)
@@ -6,7 +6,7 @@ mpass:
     .string "pass\n"
     .text
 _pass:
-    mov         %r1, mpass      ; point to "pass\n" string
+    lddw        %r1, mpass      ; point to "pass\n" string
     mov         %r2, 5          ; strlen mpass
     call        7               ; printk
     mov         %r0, 0          ;