bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21448] References to constant data in shared libraries bloats 2.


From: michael at talosis dot ca
Subject: [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27
Date: Thu, 04 May 2017 03:33:34 +0000

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

--- Comment #5 from Michael Deutschmann <michael at talosis dot ca> ---
> but the reason you see a .dynbss/.data.rel.ro copy of shared lib variables 
> and copy relocs is code in the *executable*

But not because of anything special GCC does in the executable.

The trivial handwritten .s file:

.globl _start
_start: .long big_symbol_from_shared_library

... displays the unwanted behavior when linked against a shared library with a
symbol by that name in the .rodata section with a ".size" covering it.

(Obviously that .s file would make an executable that immediately crashes, but
it's easy to write a longer .s file that is runnable.)

-- 
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]