Bug 6496 - [regression] ld is confused about the output name
Summary: [regression] ld is confused about the output name
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 13:11 UTC by Matthias Klose
Modified: 2008-05-08 13:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2008-05-08 13:11:36 UTC
http://people.debian.org/~lucas/logs/2008/04/30/libxslt-ruby_0.9.2-4_sid32-dpkg.buildlog

cc -shared -o libxslt.so extfunc.o parameters.o parser.o rb_utils.o xslt.o -L"."
-L"/usr/lib" -L"/usr/lib" -L.  -rdynamic -Wl,-export-dynamic -L/usr/lib -lxslt
-lxml2 -lexslt    -lruby1.8  -lpthread -ldl -lcrypt -lm   -lc
./libxslt.so: file not recognized: File truncated
collect2: ld returned 1 exit status

work arounds: 
 - replacing "-o libxslt.so" with "-o libfoo.so"
 - removing -L.
 - omitting -lxslt

regression compared to 2.18.1
Comment 1 Andreas Schwab 2008-05-08 13:26:31 UTC
The output has the same name as an input file.