[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-21 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #28 from Igor Pashev pashev.igor at gmail dot com 2012-11-21 09:28:28 UTC --- Excellent! # ./binutils/strip-new libfoo-sun.so -o libfoo-sun-stripped.so e# ls -lh libfoo-sun-stripped.so libfoo-sun.so -rwxr-xr-x 1 root root

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-17 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #26 from Igor Pashev pashev.igor at gmail dot com 2012-11-17 08:42:45 UTC --- (In reply to comment #25) (In reply to comment #23) Created attachment 6742 [details] large size of stripped binary Please provide unstripped

[Bug ld/14852] New: gnu ld can't use a library linked via solaris ld, if that library uses a library linked with GNU ld

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14852 Bug #: 14852 Summary: gnu ld can't use a library linked via solaris ld, if that library uses a library linked with GNU ld Product: binutils Version: 2.22 Status: NEW

[Bug ld/14852] gnu ld can't use a library linked via solaris ld, if that library uses a library linked with GNU ld

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14852 --- Comment #1 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 10:12:18 UTC --- # cat /usr/bin/ld-gnu-to-sun #!/bin/sh set -e set -u cmd=/usr/bin/sunld while [ $# -ne 0 ]; do case $1 in # GCC with GNU ld passes -m

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #19 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:37:44 UTC --- Ok, with the patch for SUNW_ldynsym stripped library now can be linked in successfully, but now I'm confused with the size of stripped binary

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #20 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:38:40 UTC --- Ok, with the patch for SUNW_ldynsym stripped library now can be linked in successfully, but now I'm confused with the size of stripped binary

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #21 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:39:56 UTC --- [1] http://osdyson.org/projects/binutils/repository/entry/patches/pr14493-sol2.patch -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #22 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:40:27 UTC --- http://osdyson.org/projects/binutils/repository/entry/patches/pr14493-sol2.patch -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #23 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:41:32 UTC --- Created attachment 6742 -- http://sourceware.org/bugzilla/attachment.cgi?id=6742 large size of stripped binary -- Configure bugmail: http

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-11-16 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #24 from Igor Pashev pashev.igor at gmail dot com 2012-11-16 13:43:14 UTC --- Oh, bugzilla is confused with pr14493 in URL -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-13 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #14 from Igor Pashev pashev.igor at gmail dot com 2012-11-13 21:10:32 UTC --- I think I've fixed this. The root of the problem is equivalent to this version script: = 8 # Builtin: base

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-13 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #15 from Igor Pashev pashev.igor at gmail dot com 2012-11-13 21:11:20 UTC --- Created attachment 6734 -- http://sourceware.org/bugzilla/attachment.cgi?id=6734 proposed patch -- Configure bugmail: http://sourceware.org/bugzilla

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-13 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #16 from Igor Pashev pashev.igor at gmail dot com 2012-11-13 21:23:26 UTC --- *** Bug 13406 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-11-13 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406 Igor Pashev pashev.igor at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-09 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #11 from Igor Pashev pashev.igor at gmail dot com 2012-11-09 12:09:32 UTC --- It looks like Solaris linker adds soname as a version tag for unversionned symbols: libbrand.so: undefined reference

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-09 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #12 from Igor Pashev pashev.igor at gmail dot com 2012-11-09 12:18:59 UTC --- (In reply to comment #11) It looks like Solaris linker adds soname as a version tag for unversionned symbols: libbrand.so: undefined reference

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-11-09 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406 --- Comment #4 from Igor Pashev pashev.igor at gmail dot com 2012-11-09 18:56:08 UTC --- anonymous tag may not be combined with other tags. Instead, on Solaris platform, any non-tagged symbol must be tagged with Base version: soname or file

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-11-09 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #13 from Igor Pashev pashev.igor at gmail dot com 2012-11-09 19:08:26 UTC --- Wow! There is an option --default-symver for ld. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #4 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 12:38:05 UTC --- Could this be caused by symbol _lib_version which is compiled in in every binary from values-X[].o ? _lib_version has version tag associated

[Bug binutils/12549] --as-needed should ignore weak references

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12549 Igor Pashev pashev.igor at gmail dot com changed: What|Removed |Added Attachment #5276|0 |1

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #5 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 13:14:30 UTC --- (In reply to comment #4) Could this be caused by symbol _lib_version which is compiled in in every binary from values-X[].o ? _lib_version has

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #7 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 14:58:35 UTC --- (In reply to comment #6) (In reply to comment #5) (In reply to comment #4) Could this be caused by symbol _lib_version which is compiled

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #8 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 19:38:50 UTC --- BTW, Solaris linker is completely happy with anonymous tags. # cat lib.c int hello(void) { return -1; } # cat map { global

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #9 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 19:40:22 UTC --- Created attachment 6681 -- http://sourceware.org/bugzilla/attachment.cgi?id=6681 elfdump liblib.so -- Configure bugmail: http

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #10 from Igor Pashev pashev.igor at gmail dot com 2012-10-10 19:46:56 UTC --- Sorry for spaming, I guess anonymous symbols should be tagged with the base version -- Configure bugmail: http://sourceware.org/bugzilla

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-10-10 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 Igor Pashev pashev.igor at gmail dot com changed: What|Removed |Added Version|2.21|2.22

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-25 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #12 from Igor Pashev pashev.igor at gmail dot com 2012-08-25 15:47:56 UTC --- Created attachment 6613 -- http://sourceware.org/bugzilla/attachment.cgi?id=6613 with patch: elfdump of stripped binary (strip ldynsym) -- Configure

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-25 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #13 from Igor Pashev pashev.igor at gmail dot com 2012-08-25 15:49:34 UTC --- Created attachment 6614 -- http://sourceware.org/bugzilla/attachment.cgi?id=6614 with patch: elfdump of 'strip-x'ed binary (strip -x ldynsym

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-25 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #14 from Igor Pashev pashev.igor at gmail dot com 2012-08-25 15:54:44 UTC --- (In reply to comment #11) Created attachment 6612 [details] A patch Please test it. Thank you! strip now seems to work properly (elfdump happy

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-23 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #5 from Igor Pashev pashev.igor at gmail dot com 2012-08-23 14:42:07 UTC --- Created attachment 6607 -- http://sourceware.org/bugzilla/attachment.cgi?id=6607 C source -- Configure bugmail: http://sourceware.org/bugzilla

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-23 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #7 from Igor Pashev pashev.igor at gmail dot com 2012-08-23 14:46:16 UTC --- Created attachment 6609 -- http://sourceware.org/bugzilla/attachment.cgi?id=6609 Dump made by solaris utility elfdump -- Configure bugmail: http

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-23 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #8 from Igor Pashev pashev.igor at gmail dot com 2012-08-23 14:47:39 UTC --- Created attachment 6610 -- http://sourceware.org/bugzilla/attachment.cgi?id=6610 Dump made by readelf from GNU binutils -- Configure bugmail: http

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-23 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #6 from Igor Pashev pashev.igor at gmail dot com 2012-08-23 14:44:44 UTC --- Created attachment 6608 -- http://sourceware.org/bugzilla/attachment.cgi?id=6608 Compiled solaris 32-bit binary (gcc -O0 -gdwarf-2; GCC 3.4.3 (csl

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-23 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #9 from Igor Pashev pashev.igor at gmail dot com 2012-08-23 14:58:24 UTC --- AFAIK, .SUNW_ldynsym and .dynsym sections do overlap. .SUNW_ldynsym goes just before .dynsym and supersets it. So Solaris utilities read contents

[Bug binutils/14493] New: strip breaks .SUNW_ldynsym section on illumos

2012-08-18 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 Bug #: 14493 Summary: strip breaks .SUNW_ldynsym section on illumos Product: binutils Version: 2.22 Status: NEW Severity: normal Priority: P2 Component:

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-18 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #1 from Igor Pashev pashev.igor at gmail dot com 2012-08-18 10:19:57 UTC --- Created attachment 6587 -- http://sourceware.org/bugzilla/attachment.cgi?id=6587 test_ldynsym-stripped-elfdump-s.txt -- Configure bugmail: http

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-18 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #2 from Igor Pashev pashev.igor at gmail dot com 2012-08-18 10:21:01 UTC --- Created attachment 6588 -- http://sourceware.org/bugzilla/attachment.cgi?id=6588 test_noldynsym-nonstripped-elfdump-s.txt -- Configure bugmail: http

[Bug binutils/14493] strip breaks .SUNW_ldynsym section on illumos

2012-08-18 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14493 --- Comment #3 from Igor Pashev pashev.igor at gmail dot com 2012-08-18 10:22:09 UTC --- Created attachment 6589 -- http://sourceware.org/bugzilla/attachment.cgi?id=6589 test_noldynsym-stripped-elfdump-s.txt -- Configure bugmail: http

[Bug ld/13863] New: Allow alternative linker via LD_ALTEXEC environment variable

2012-03-17 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13863 Bug #: 13863 Summary: Allow alternative linker via LD_ALTEXEC environment variable Product: binutils Version: unspecified Status: NEW Severity: normal

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-02-24 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406 --- Comment #3 from Igor Pashev pashev.igor at gmail dot com 2012-02-25 07:30:58 UTC --- What about assigning [on the fly] some tag instead to those anonymous tags? Say __solaris_anon or whatsoever. Or maybe Base. dpkg-gensymbols list

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-02-24 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 --- Comment #3 from Igor Pashev pashev.igor at gmail dot com 2012-02-25 07:34:55 UTC --- What about assigning [on the fly] some tag instead to those anonymous tags? Say __solaris_anon or whatsoever. Or maybe Base. dpkg-gensymbols list

[Bug ld/12548] anonymous version scripts no longer working with binutils 2.21

2012-01-26 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12548 Igor Pashev pashev.igor at gmail dot com changed: What|Removed |Added CC||pashev.igor

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-01-26 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406 Igor Pashev pashev.igor at gmail dot com changed: What|Removed |Added CC||pashev.igor

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-01-26 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406 --- Comment #2 from Igor Pashev pashev.igor at gmail dot com 2012-01-26 12:52:33 UTC --- (In reply to comment #0) This would also solve bug 12548 as a side-effect :) I' not sure. I got File format not recognized when linking library built