Unable to give executable as input

Christian Groessler chris@groessler.org
Tue May 25 12:05:53 GMT 2021


On 5/25/21 1:31 PM, Christian Groessler wrote:

> On 5/25/21 7:44 AM, kamlesh kumar via Binutils wrote:
>> Hi All,
>> 2.36 version linker(ld) was accepting executable as input but now with
>> trunk, it no longer works, and getting below warning/error.
>> $./build-binutils-gdb/ld/ld-new -r test -o test.o
>> ./build-binutils-gdb/ld/ld-new: cannot use executable file 'test' as
>> input to a link
>> Can someone give some insight why this behavior was enforced?
>
>
> Are you sure your command line is correct? It suspiciously looks like 
> you wanted to have
>
> $./build-binutils-gdb/ld/ld-new -r -o test test.o
>

Hmm, maybe not. I missed the '-r'.

regards,
chris



More information about the Binutils mailing list