https://sourceware.org/bugzilla/show_bug.cgi?id=33291

--- Comment #21 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-cfl-3 pr33291]$ cat x.c
const long long int foo = 0x20001;
[hjl@gnu-cfl-3 pr33291]$ cat y.c
const char bar = 1;
[hjl@gnu-cfl-3 pr33291]$ make LD=./ld.master
gcc -B./ -O2 -fPIC -fmerge-all-constants   -c -o x.o x.c
gcc -B./ -O2 -fPIC -fmerge-all-constants   -c -o y.o y.c
./ld.master -shared -o x.so x.o y.o
readelf -SW x.so | grep rodata
  [ 4] .rodata           PROGBITS        0000000000001080 001080 000009 08   A 
0   0  8
[hjl@gnu-cfl-3 pr33291]$ 

sh_size == 9 and sh_entsize == 8.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to