Bug 20767 - empty archive input causes "internal error in target, at ../../gold/parameters.h:105"
Summary: empty archive input causes "internal error in target, at ../../gold/parameter...
Status: RESOLVED DUPLICATE of bug 20693
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.28
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 06:30 UTC by npiggin
Modified: 2016-11-21 20:19 UTC (History)
4 users (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 npiggin 2016-11-04 06:30:26 UTC
echo "EXTERN(test)" > test.lds
ar rcsD test.o
ld.gold -r -o test2.o -T test.lds test.o

This causes ld.gold: internal error in target, at ../../gold/parameters.h:105


ld.bfd succeeds. The Linux kernel 4.9 build is using this pattern now. It would be good to be compatible with ld.bfd.
Comment 1 Markus Trippelsdorf 2016-11-10 07:03:54 UTC
dup of PR20693
Comment 2 Cary Coutant 2016-11-21 20:19:48 UTC
Dup.

*** This bug has been marked as a duplicate of bug 20693 ***