Bug 1219

Summary: binutils fail to recognize executables and shared libraries generated by Sun Studio 10 CC
Product: binutils Reporter: Ray Ruvinskiy <rruvin>
Component: binutilsAssignee: unassigned
Status: RESOLVED FIXED    
Severity: critical CC: bug-binutils
Priority: P2    
Version: 2.16   
Target Milestone: ---   
Host: i386-pc-solaris2.10 Target: i386-pc-solaris2.10
Build: i386-pc-solaris2.10 Last reconfirmed:

Description Ray Ruvinskiy 2005-08-20 03:54:36 UTC
binutils, including ld, fail to recognize executables and shared libraries
linked with Sun Studio 10 CC.

The error message returned is "unrecognized file format."

In particular, this seems to be due to the fact that CC passes the option
-zld32=-S/opt/SUNWspro/prod/lib/libCCexcept.so.1 to the linker (i.e., telling it
to use libCCexcept.so.1 as a support library). If the (native) ld is invoked
directly with the same parameters as usually supplied by CC except for the one
mentioned above, binutils recognize it.
Comment 1 Ben Elliston 2006-03-31 05:06:43 UTC
Can you attach two example executables to this bug report (one that binutils
recognises and one that does it does not)?  Thanks.
Comment 2 Alan Modra 2009-10-14 14:28:00 UTC
My guess is that this has been fixed in 2.20.  Closing anyway as no feedback in
4 years