https://sourceware.org/bugzilla/show_bug.cgi?id=34570
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
A test with GCC:
[hjl@gnu-tgl-3 pr34570]$ cat small.c
#include <stdint.h>
char foo;
int
main ()
{
return (uintptr_t) &foo == 0x12345678 ? 0 : 1;
}
[hjl@gnu-tgl-3 pr34570]$ cat big.c
long long foo;
[hjl@gnu-tgl-3 pr34570]$ make
gcc -O2 -fcommon -flto -c -o big.o big.c
gcc -O2 -fcommon -c -o small.o small.c
gcc -O2 -fcommon -o x big.o small.o
readelf -sW x | grep foo
26: 0000000000403005 1 OBJECT GLOBAL DEFAULT 23 foo
[hjl@gnu-tgl-3 pr34570]$
--
You are receiving this mail because:
You are on the CC list for the bug.