LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1050 - Empty archive crashes linker
Summary: Empty archive crashes linker
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Linker (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-12-15 13:15 PST by Andrew Lenharth
Modified: 2010-02-22 12:48 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
empty archive (8 bytes, application/octet-stream)
2006-12-15 13:17 PST, Andrew Lenharth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Lenharth 2006-12-15 13:15:33 PST
if an archive is empty, the linker (gccld in this case) crashes.  It should
manage to procede.
Comment 1 Andrew Lenharth 2006-12-15 13:17:06 PST
Created attachment 517 [details]
empty archive

reproduce with:
gccld -o /dev/null built-in.o
Comment 2 Reid Spencer 2006-12-15 13:45:52 PST
Several asserts in the Archive Library should have been producing error messages
but weren't. This is now fixed with these patches:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061211/041458.html