diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-14 17:58:55 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-10-30 13:41:56 -0700 |
commit | e34136d93059ddd4a5e186b62282fccf27c3e9d0 (patch) | |
tree | 918b4228f511d5b92dd352c159dfaa8eb8e36683 /linux-user/gen-vdso-elfn.c.inc | |
parent | 00cc2934b2f02c469bd28cae0f1ac09e289a5ae9 (diff) |
linux-user/ppc: Add vdso
Add support in gen-vdso-elfn.c.inc for the DT_PPC64_OPT
dynamic tag: this is an integer, so does not need relocation.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/gen-vdso-elfn.c.inc')
-rw-r--r-- | linux-user/gen-vdso-elfn.c.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-user/gen-vdso-elfn.c.inc b/linux-user/gen-vdso-elfn.c.inc index 7034c36d5e..95856eb839 100644 --- a/linux-user/gen-vdso-elfn.c.inc +++ b/linux-user/gen-vdso-elfn.c.inc @@ -273,7 +273,14 @@ static void elfN(process)(FILE *outf, void *buf, bool need_bswap) errors++; break; + case PT_LOPROC + 3: + if (ehdr->e_machine == EM_PPC64) { + break; /* DT_PPC64_OPT: integer bitmask */ + } + goto do_default; + default: + do_default: /* This is probably something target specific. */ fprintf(stderr, "VDSO has unknown DYNAMIC entry (%lx)\n", (unsigned long)tag); |