[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2006-12-11 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2006-12-11 
17:34 ---
Seeing something very similar here, except that the platform is Solaris-x86 2.7.


PSF[lss001]> cat foo.c
main() {}
PSF[lss001]> /opt/SUNWspro/bin/cc foo.c -o foo
PSF[lss001]> ls -l foo
-rwxr-xr-x 1 expmake expmake 6352 Dec 11 11:31 foo
PSF[lss001]> ./foo
PSF[lss001]> /opt/exp/gnu/bin/strip --version
GNU strip 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
PSF[lss001]> /opt/exp/gnu/bin/strip foo  
BFD: stoHaqtX: warning: allocated section `.bss' not in segment
PSF[lss001]> ls -l foo
-rwxr-xr-x 1 expmake expmake 269164584 Dec 11 11:32 foo
PSF[lss001]> ./foo
Killed

-- 
   What|Removed |Added

 CC|                |psfales at alcatel-lucent
   |        |dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:36 ---
I'm not sure what you mean by "different" - clearly all three are different in
at least some ways, as they all have different sizes.  The one stripped with the
buggy 2.17 version is *much* larger than the unstripped version.  I'm not sure
if it will help, but I'll upload the following files:

Size   File

5484   hello (unstripped "hello world" binary)
3572   hello.binutils2.16.1_strip
265716 hello.binutils2.17_strip
3632   hello.sunstrip

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:38 ---
Created an attachment (id=1573)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1573&action=view)
Unstripped "hello world" binary (Sparc Solaris 8)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:38 ---
Created an attachment (id=1574)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1574&action=view)
Stripped with /usr/ccs/bin/strip (fails to run)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:39 ---
Created an attachment (id=1575)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1575&action=view)
Stripped with binutils 2.16.1


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:40 ---
Created an attachment (id=1576)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1576&action=view)
Stripped with bintutils-2.17 (fails to run)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com


-- 
   What|Removed |Added

   Attachment #1574|Stripped with   |Stripped with
description|/usr/ccs/bin/strip (fails to|/usr/ccs/bin/strip
   |run)|


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
14:43 ---
I'm not sure were to get "a strip built from the current mainline binutils
sources" but I should be able to try that too if you can point me to it.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-02-22 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-02-22 
21:37 ---
That fix worked for me.  The stripped binary waz the same length as the one 
stripped with 2.16.1 though it didn't compare identical.  More importantly, it 
runs.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-03-07 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-03-07 
20:28 ---
Seeing another problem with 2.17.  Not sure if it's related or should be a new
bug...

We build thunderbird and firefox from source, and install it with stripped
shared libraries to save space.   Thunderbird-1.5.0.9 was stripped with 2.16.1
and worked fine, but after upgrading to 1.5.0.10 and incidentally stripping with
2.17, users started complaining about core dumps.   

The problem occurs on both Solaris-sparc and solaris-x86 and seems to be related
to stripping with 2.17.  If I don't strip the libraries, it works fine.   If 
I then strip libprldap50.so with 2.16.1, it also works.  (Just that one file -
verything else is unstripped.) But if I strip that file with 2.17, thunderbird
still starts up, but attempting to LDAP operations results in a  core dump with
the message:

ld.so.1: /opt/exp/lib/thunderbird/lib/thunderbird-1.5.0.10/thunderbird-bin:
fatal: relocation error: symbol not found: prldap_install_routines: referenced
in /opt/exp1/lib/thunderbird/lib/thunderbird-1.5.0.10/components/libmozldap.so


-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-03-08 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-03-08 
14:03 ---
Yes, the problems I'm seeing are with the patched version of strip - I should
have mentioned that in the report.

I've attached a cpio file containing the unstripped shared library, the file
stripped with 2.16.1 and the file stripped with 2.17 (which is quite a bit
larger than the unstripped file!)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-03-08 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-03-08 
14:05 ---
Created an attachment (id=1602)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1602&action=view)
stripped and unstripped libprldap.so

stripped and unstripped libprldap.so

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)

2007-03-16 Thread psfales at alcatel-lucent dot com

--- Additional Comments From psfales at alcatel-lucent dot com  2007-03-16 
19:20 ---
The elf.c.patch2 file looks good from what I can see.  (It didn't apply cleanly
on top of elf.c.patch, but it wasn't too hard to apply manually)

After making that change I retested all the known problems I've seen with 2.17
and they appear to be fixed.



-- 
   What|Removed |Added

 Status|WAITING |NEW


http://sourceware.org/bugzilla/show_bug.cgi?id=3535

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils