[LLVMdev] Request for help: why does the program link correctly?

Tim Northover t.p.northover at gmail.com
Fri Jul 3 07:57:50 PDT 2015


On 2 July 2015 at 23:32, Soumitra Chatterjee <soumitra at hp.com> wrote:
> Someone in my team pointed to an open bug about this in gcc:
>         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35514
>
> Would this be applicable to Clang as well?

It's probably open for change. We'd have to work out who (if anyone)
was relying on the current behaviour and someone would have to be
motivated enough to write the patch.

Incidentally, what linker are you using? Neither ld.bfd nor ld.gold
actually seem to diagnose this if there *is* a mismatch. So changing
it wouldn't seem to improve matters much.

Cheers.

Tim.



More information about the llvm-dev mailing list