Apple cctools ld Failure
Apple cctools ld Failure
- Subject: Apple cctools ld Failure
- From: Martin Fong <email@hidden>
- Date: Mon, 15 Aug 2005 13:14:42 -0700
Enclosed is a test that demonstrates a problem with Apple's ld
failing to load a library module when a global variable is the only
external reference. (This problem does _not_ occur with GNU's ld.)
Diagnostic output from various (disparate) compiler/linker pairings
follow.
Any suggestions, or should I simply file a bug report?
Thanks!
...Martin
--- Failed Test with Apple's ld ---
% ./ld_test.csh
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Apple Computer, Inc. version cctools-525.1.obj~8
Compiling loader test components...
First test: load .o files...
Creating declaration library...
Second test: load with .a file...
ld: Undefined symbols:
_my_opt
Third test: load with .a file and invoke dummy_proc ()...
U _dummy_proc
--- Successful Test 1 ---
% ./ld_test.csh
2.95.4
GNU ld version 2.11 (with BFD 2.11)
Compiling loader test components...
First test: load .o files...
Creating declaration library...
Second test: load with .a file...
Third test: load with .a file and invoke dummy_proc ()...
U dummy_proc
--- Successful Test 2 ---
$ ./ld_test.csh
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
GNU ld version 2.15.92.0.2 20040927
Compiling loader test components...
First test: load .o files...
Creating declaration library...
Second test: load with .a file...
Third test: load with .a file and invoke dummy_proc ()...
U dummy_proc
--- Successful Test 3 ---
$ ./ld_test.csh
2.95.3
GNU ld version 2.13.1
Compiling loader test components...
First test: load .o files...
Creating declaration library...
Second test: load with .a file...
Third test: load with .a file and invoke dummy_proc ()...
U dummy_proc
Attachment:
ld_test.tgz
Description: GNU Zip compressed data
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden