Bug 136824

Summary: ld (binutils) lacks several options
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Lorenzo Paulatto <paulatz>
Component: DevelopmentAssignee: Philipp Thomas <pth>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lorenzo Paulatto 2005-12-03 14:42:08 UTC
While trying to compile openwengo (www.openwengo.org) I realized that ld on suse 10.0 lacks the -no_archive option.

Facts:
1. If you specify -no_archive in the ld command line it is interpreted as -n (= --nmagic) and this often causes the compilation to fail, especially if used toghether with the -shared option.

2. The minimum effort to reproduce the issue is to run the following commands:
[0|paulatto@paulax|~]$ ld -shared -no_archive
ld: -static and -shared may not be used together
[1|paulatto@paulax|~]$ ld -shared -n
ld: -static and -shared may not be used together

3. The local manpage of ld doesn't document the -no_archive option at all.

4. Looking on the internet you can find several versions of the ld manpage, some of them include the option (e.g. <http://www.uwm.edu/cgi-bin/IMT/wwwman?topic=ld(1)&msection=3>) some others don't.

5. Comparing local and on-line versions of the manual you will realize that also the options -no_so and -so_archive are missing.
Comment 1 Thorsten Kukuk 2005-12-05 07:40:48 UTC
This are the Alpha DEC manual pages, not the one for binutils.
You need to port the application at first to Linux and/or adjust the Makefiles.