[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18
|
From: |
Peter Maydell |
|
Subject: |
Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18 |
|
Date: |
Thu, 18 May 2023 10:22:18 +0100 |
On Wed, 17 May 2023 at 21:32, Richard Henderson
<richard.henderson@linaro.org> wrote:
> Failures:
> https://gitlab.com/qemu-project/qemu/-/jobs/4304958508#L2551
>
> /usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/lib/../lib/libc.a(init-first.o):
> in function `__libc_init_first':
> (.text+0x10): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15
> against symbol
> `__environ' defined in .bss section in
> /usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/lib/../lib/libc.a(environ.o)
> /usr/bin/ld: (.text+0x10): warning: too many GOT entries for -fpic, please
> recompile with
> -fPIC
This is really a bug in the host libc (more specifically, how
the libc.a was compiled), isn't it? We've only previously seen
it when trying to build the system emulation binaries statically,
but it looks like it's finally reared its head for the usermode
binaries here. IIRC it basically boils down to how big the final
executable is and whether you get unlucky with what gets linked
in and what order such that a reloc in libc ends up wanting to
access a GOT table entry that gets assigned too high an index.
Still, given the prevalence of libc that's been compiled -fpic
rather than -fPIC, we probably need to deal with it somehow.
Side note: why are we linking against -lstdc++ ???
-- PMM
- [PULL 54/68] meson: prepare move of QEMU_CFLAGS to meson, (continued)
- [PULL 54/68] meson: prepare move of QEMU_CFLAGS to meson, Paolo Bonzini, 2023/05/17
- [PULL 64/68] configure: do not rerun the tests with -Werror, Paolo Bonzini, 2023/05/17
- [PULL 65/68] configure: remove unnecessary mkdir, Paolo Bonzini, 2023/05/17
- [PULL 68/68] docs/devel: update build system docs, Paolo Bonzini, 2023/05/17
- [PULL 62/68] build: move --disable-debug-info to meson, Paolo Bonzini, 2023/05/17
- [PULL 55/68] build: move sanitizer tests to meson, Paolo Bonzini, 2023/05/17
- [PULL 61/68] build: move compiler version check to meson, Paolo Bonzini, 2023/05/17
- [PULL 51/68] build: move glib detection and workarounds to meson, Paolo Bonzini, 2023/05/17
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Richard Henderson, 2023/05/17
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Paolo Bonzini, 2023/05/18
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18,
Peter Maydell <=
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Paolo Bonzini, 2023/05/18
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Paolo Bonzini, 2023/05/18
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Richard Henderson, 2023/05/18
- Re: [PULL 00/68] i386, build system, KVM changes for 2023-05-18, Yang Zhong, 2023/05/18