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

--- Comment #23 from Mark Wielaard <mark at klomp dot org> ---
(In reply to H.J. Lu from comment #21)
> [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.

yeah, that looks wrong.
Why was sh_entsize set to 8 in this case?

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

Reply via email to