bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27226] ld.bfd contains huge .rodata section


From: mark at klomp dot org
Subject: [Bug ld/27226] ld.bfd contains huge .rodata section
Date: Fri, 22 Jan 2021 09:51:17 +0000

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---

> $ eu-elfcompress -n '.*rodata' -t zlib ld.bfd -o ld.xxx -v
> processing: ld.bfd
> [17] .rodata ignoring allocated section

It is as the message says. .rodata is an allocated section (SHF_ALLOC) and so
cannot be ELF section compressed. This is explicitly not allowed by the spec
because it would make mapping such a section into memory awkward (there is no
corresponding program header flag, so it would be unclear how the dynamic
linker should map a segment that contains a compressed section, especially
since the segment/section mapping isn't 1-on-1 and can be about partial
sections).

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]