在 2023/8/17 上午2:03, Richard Henderson 写道:
Signed-off-by: Richard Henderson<richard.hender...@linaro.org>
---
  linux-user/loongarch64/vdso-asmoffset.h |   8 ++
  linux-user/elfload.c                    |   4 +
  linux-user/loongarch64/signal.c         |  17 +++-
  linux-user/loongarch64/Makefile.vdso    |   7 ++
  linux-user/loongarch64/meson.build      |   4 +
  linux-user/loongarch64/vdso.S           | 130 ++++++++++++++++++++++++
  linux-user/loongarch64/vdso.ld          |  73 +++++++++++++
  linux-user/loongarch64/vdso.so          | Bin 0 -> 3560 bytes
  linux-user/meson.build                  |   1 +
  9 files changed, 243 insertions(+), 1 deletion(-)
  create mode 100644 linux-user/loongarch64/vdso-asmoffset.h
  create mode 100644 linux-user/loongarch64/Makefile.vdso
  create mode 100644 linux-user/loongarch64/meson.build
  create mode 100644 linux-user/loongarch64/vdso.S
  create mode 100644 linux-user/loongarch64/vdso.ld
  create mode 100755 linux-user/loongarch64/vdso.so

I run a simply LoongArch binary on x86_64.

I got

...
Linking TBs 0x7f0e7004f240 index 1 -> 0x7f0e7004f3c0
Trace 0: 0x7f0e7004f3c0 [00000000/00000001200084b4/00000000/00000000] __gettimeofday Trace 0: 0x7f0e7004f500 [00000000/0000555555d5c644/00000000/00000000] __vdso_gettimeofday Trace 0: 0x7f0e7004f640 [00000000/0000555555d5c64c/00000000/00000000] __vdso_gettimeofday Trace 0: 0x7f0e7004f740 [00000000/00000001200084c0/00000000/00000000] __gettimeofday
...

So
Tested-by: Song Gao <gaos...@loongson.cn>
Reviewed-by: Song Gao <gaos...@loongson.cn>

Thanks.
Song Gao


Reply via email to