Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Paolo Bonzini
On 10/13/22 13:07, Daniel P. Berrangé wrote: The only thing 'configure' seems to be doing with the 'bigendian' env var it sets, is to construct a meson cross compiler spec Yes, this is then available from host_machine.endian() in Meson. It was used via config_host_data.set('HOST_WORDS_BIGEN

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Marc-André Lureau
Hi On Thu, Oct 13, 2022 at 3:50 PM Peter Maydell wrote: > On Thu, 13 Oct 2022 at 12:08, Daniel P. Berrangé > wrote: > > > > On Thu, Oct 13, 2022 at 11:39:34AM +0100, Peter Maydell wrote: > > > On Thu, 13 Oct 2022 at 09:47, Michal Privoznik > wrote: > > > > > > > > When determining the endiand

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Peter Maydell
On Thu, 13 Oct 2022 at 12:08, Daniel P. Berrangé wrote: > > On Thu, Oct 13, 2022 at 11:39:34AM +0100, Peter Maydell wrote: > > On Thu, 13 Oct 2022 at 09:47, Michal Privoznik wrote: > > > > > > When determining the endiandness of the target architecture we're > > > building for a small program is

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Daniel P . Berrangé
On Thu, Oct 13, 2022 at 11:39:34AM +0100, Peter Maydell wrote: > On Thu, 13 Oct 2022 at 09:47, Michal Privoznik wrote: > > > > When determining the endiandness of the target architecture we're > > building for a small program is compiled, which in an obfuscated > > way declares two strings. Then,

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Michal Prívozník
On 10/13/22 12:39, Peter Maydell wrote: > On Thu, 13 Oct 2022 at 09:47, Michal Privoznik wrote: >> >> When determining the endiandness of the target architecture we're >> building for a small program is compiled, which in an obfuscated >> way declares two strings. Then, we look which string is in

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Peter Maydell
On Thu, 13 Oct 2022 at 09:47, Michal Privoznik wrote: > > When determining the endiandness of the target architecture we're > building for a small program is compiled, which in an obfuscated > way declares two strings. Then, we look which string is in > correct order (using strings binary) and ded

Re: [PATCH] configure: Avoid using strings binary

2022-10-13 Thread Michal Prívozník
On 10/13/22 10:37, Michal Privoznik wrote: > When determining the endiandness of the target architecture we're > building for a small program is compiled, which in an obfuscated > way declares two strings. Then, we look which string is in > correct order (using strings binary) and deduct the endian

[PATCH] configure: Avoid using strings binary

2022-10-13 Thread Michal Privoznik
When determining the endiandness of the target architecture we're building for a small program is compiled, which in an obfuscated way declares two strings. Then, we look which string is in correct order (using strings binary) and deduct the endiandness. But using the strings binary is problematic,