bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gold cannot handle _start in a library


From: Roland McGrath
Subject: gold cannot handle _start in a library
Date: Tue, 24 May 2011 16:31:22 -0700

Given:

        $ gcc -c -xc <(echo '_start(){}') -o start.o
        $ ar cq libstart.a start.o
        $ ./gold/ld-new -o foo libstart.a

The output file foo is an empty ELF file.
With:

        $ ./gold/ld-new -o foo -e _start libstart.a
        ./gold/ld-new: warning: cannot find entry symbol '_start'

The results are the same, plus the extra warning.

BFD ld does not have this bug.
I tested with today's trunk builds of gold and BFD ld.


Thanks,
Roland



reply via email to

[Prev in Thread] Current Thread [Next in Thread]