Unable to give executable as input

kamlesh kumar kamleshbhalui@gmail.com
Tue May 25 05:44:25 GMT 2021


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?

Nick,
Here(https://sourceware.org/bugzilla/show_bug.cgi?id=26047#c5) you
suggested having -z allowexec option, can we still have it?


./kamlesh


More information about the Binutils mailing list