qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Jim Shu <jim.shu@sifive.com>, qemu-devel@nongnu.org
Cc: Laurent Vivier <laurent@vivier.eu>
Subject: Re: [PATCH 2/2] linux-user: Add QEMU include path to vdso
Date: Fri, 26 Jul 2024 15:32:53 +1000	[thread overview]
Message-ID: <8b952492-36f5-4d7f-b2f9-93f17f95c02c@linaro.org> (raw)
In-Reply-To: <20240726043246.10999-3-jim.shu@sifive.com>

On 7/26/24 14:32, Jim Shu wrote:
> Add include path to 'gen-vdso.c' to get ELF header in QEMU source.
> 
> Signed-off-by: Jim Shu <jim.shu@sifive.com>
> ---
>   linux-user/meson.build | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/linux-user/meson.build b/linux-user/meson.build
> index bc41e8c3bc..ccce4f7e70 100644
> --- a/linux-user/meson.build
> +++ b/linux-user/meson.build
> @@ -30,8 +30,11 @@ linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('sem
>   
>   syscall_nr_generators = {}
>   
> +# It requires "include/elf.h"
> +gen_vdso_inc = include_directories('..' / 'include')
>   gen_vdso_exe = executable('gen-vdso', 'gen-vdso.c',
> -                          native: true, build_by_default: false)
> +                          native: true, build_by_default: false,
> +                          include_directories: gen_vdso_inc)
>   gen_vdso = generator(gen_vdso_exe, output: '@BASENAME@.c.inc',
>                        arguments: ['-o', '@OUTPUT@', '@EXTRA_ARGS@', '@INPUT@'])
>   

Ok, I guess.  I'm not convinced we need this.  I tend to think our elf.h is way out of 
date, and perhaps should be removed.  I suspect we only carry it around now for windows 
hosts, compiling the system loaders.


r~


  reply	other threads:[~2024-07-26  5:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26  4:32 [PATCH 0/2] Let gen-vdso tool to use internal ELF header Jim Shu
2024-07-26  4:32 ` [PATCH 1/2] include/elf.h: align ELF macro name with glibc Jim Shu
2024-07-26  5:18   ` Richard Henderson
2024-07-26  4:32 ` [PATCH 2/2] linux-user: Add QEMU include path to vdso Jim Shu
2024-07-26  5:32   ` Richard Henderson [this message]
2024-07-26  5:28 ` [PATCH 0/2] Let gen-vdso tool to use internal ELF header Richard Henderson
2024-07-26  6:44   ` Jim Shu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b952492-36f5-4d7f-b2f9-93f17f95c02c@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=jim.shu@sifive.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).