as /dev/null -o a.o echo 'ENTRY(no_such_symbol)' > a.t ld.bfd -T a.t -shared a.o Both `ld.bfd -e no_such_symbol -shared a.o` and (executable link) `ld.bfd -T a.t a.o` have a warning: `cannot find entry symbol ...; defaulting to ...`
Hi Fanguri, Shared objects do not need an entry point, so not complaining about ENTRY(no_such_symbol) makes sense. In theory then the real bug is that "-e no_such_symbol -shared" triggers a warning. Although it could be argued that any use of -e should refer to a valid symbol, even if it is not used. Thoughts ? Cheers Nick