[Bug gold/23268] gold doesn't handle symbol versions like BFD ld when linking executable with both -E and --version-script

2018-06-06 Thread mh-sourceware at glandium dot org
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:

[Bug gold/23268] gold doesn't handle symbol versions like BFD ld when linking executable with both -E and --version-script

2018-06-06 Thread mh-sourceware at glandium dot org
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

[Bug gold/23268] gold doesn't handle symbol versions like BFD ld when linking executable with both -E and --version-script

2018-06-06 Thread ccoutant at gmail dot com
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

[Bug gold/23268] gold doesn't handle symbol versions like BFD ld when linking executable with both -E and --version-script

2018-06-06 Thread mh-sourceware at glandium dot org
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

[Bug gold/23268] New: gold doesn't handle symbol versions like BFD ld when linking executable with both -E and --version-script

2018-06-06 Thread mh-sourceware at glandium dot org
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

[Bug binutils/23267] New: objdump and readelf both assume first symbol version is base version

2018-06-06 Thread mh-sourceware at glandium dot org
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

[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden

2018-06-06 Thread amodra at gmail dot com
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