Re: [pushed] libiberty, Darwin : Fix simple-object LTO table for cross-endian case.

2021-08-23 Thread Iain Sandoe
Hi, > On 23 Aug 2021, at 09:07, Martin Liška wrote: > > On 8/18/21 20:37, Iain Sandoe wrote: >> For mach-o, we encapsulate streamed IR for LTO in three special >> sections with a table that describes their entries. The table is expected >> to be written with native endianness for the target, b

Re: [pushed] libiberty, Darwin : Fix simple-object LTO table for cross-endian case.

2021-08-23 Thread Martin Liška
On 8/18/21 20:37, Iain Sandoe wrote: Hi, For mach-o, we encapsulate streamed IR for LTO in three special sections with a table that describes their entries. The table is expected to be written with native endianness for the target, but for cross-endian cross-compilation the swapping was omitted

[pushed] libiberty, Darwin : Fix simple-object LTO table for cross-endian case.

2021-08-18 Thread Iain Sandoe
Hi, For mach-o, we encapsulate streamed IR for LTO in three special sections with a table that describes their entries. The table is expected to be written with native endianness for the target, but for cross-endian cross-compilation the swapping was omitted. Fixed thus. tested on a cross from