Discussion:
[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden
amodra at gmail dot com
2018-05-10 23:01:17 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

Alan Modra <amodra at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
I agree that exporting these symbols doesn't seem to be useful. I can't see a
good reason why anyone would want access to their values in shared libraries
external to the given shared library (and to choose a particular _edata say,
from among many possible shared libraries requires dlopen and dlsym).

Also, given that the standard scripts define these symbols for shared
libraries, it isn't simple for a shared library to access their values in the
executable. Again, you'd need to use dlopen and dlsym. So it probably isn't
that useful to export these symbols from an executable, but I'm less sure about
executables than I am about shared libraries.
--
You are receiving this mail because:
You are on the CC list for the bug.
hjl.tools at gmail dot com
2018-05-10 19:18:49 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

H.J. Lu <hjl.tools at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Blocks| |23162


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=23162
[Bug 23162] assertion fail binutils/bfd/elf32-i386.c:3953
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...