[FFmpeg-trac] #7790(build system:new): Endianness detection breaks with LTO
FFmpeg
trac at avcodec.org
Thu Mar 14 00:21:53 EET 2019
#7790: Endianness detection breaks with LTO
--------------------------------------+----------------------------------
Reporter: RedDwarf82 | Type: defect
Status: new | Priority: normal
Component: build system | Version: 4.1
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
ffmpeg's configure wrongly thinks my toolchain uses little-endian because
of LTO.
{{{
$ cat test.c
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
$ gcc -c -o test.o test.c
$ od -t x1 test.o | grep '42 *49 *47 *45'
$ gcc -c -o test.o test.c -fno-lto
$ od -t x1 test.o | grep '42 *49 *47 *45'
0000160 42 49 47 45 00 47 43 43 3a 20 28 42 75 69 6c 64
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7790>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list