[COMMITED] sim: bpf: update to new BPF relocations

Message ID 87fs8mimm9.fsf@oracle.com
State New
Headers
Series [COMMITED] sim: bpf: update to new BPF relocations |

Commit Message

Jose E. Marchesi April 26, 2023, 5:23 p.m. UTC
  sim: bpf: update to new BPF relocations
    
    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
  

Patch

diff --git a/sim/testsuite/bpf/testutils.inc b/sim/testsuite/bpf/testutils.inc
index d3d6b17b5b6..ce5c55217e7 100644
--- a/sim/testsuite/bpf/testutils.inc
+++ b/sim/testsuite/bpf/testutils.inc
@@ -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          ;