https://sourceware.org/bugzilla/show_bug.cgi?id=23268
--- Comment #3 from Mike Hommey ---
I'm using --version-script to hide symbols (because --exclude-symbols is PE
only, and I don't think it takes globs anyways). Of course, when not using one,
it works.
--
You are receiving this mail because:
https://sourceware.org/bugzilla/show_bug.cgi?id=23268
--- Comment #4 from Mike Hommey ---
FWIW, it works with both BFD ld and lld.
--
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@g
https://sourceware.org/bugzilla/show_bug.cgi?id=23268
--- Comment #2 from Cary Coutant ---
You're using --version-script when linking an executable? As far as I know,
that's not supported (and probably should be disallowed). Version scripts are
for shared libraries.
What happens if you remove th
https://sourceware.org/bugzilla/show_bug.cgi?id=23268
--- Comment #1 from Mike Hommey ---
As for what kind of subtle problem this can cause:
$ cat foo.c
#include
void* malloc_hook(size_t s) {
abort();
}
void* (*__malloc_hook)(size_t s) = malloc_hook;
int main() { malloc(1);}
$ cat ver
hi
https://sourceware.org/bugzilla/show_bug.cgi?id=23268
Bug ID: 23268
Summary: gold doesn't handle symbol versions like BFD ld when
linking executable with both -E and --version-script
Product: binutils
Version: unspecified
https://sourceware.org/bugzilla/show_bug.cgi?id=23267
Bug ID: 23267
Summary: objdump and readelf both assume first symbol version
is base version
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severi
https://sourceware.org/bugzilla/show_bug.cgi?id=23161
--- Comment #8 from Alan Modra ---
Comment #2 implie "_end" must be made dynamic in the executable if referenced
from a shared library, and the linker script can't make "_end" hidden when
building a shared library.
Comment #7 implies that we