https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50077

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #2)

> clang seems to support -mcmodel=large - at least at 3.1 - so any necessary
> ld64/dyld support is available.

That's an incorrect assumption on my part, although clang produces object files
without error. (for -c) it seems that the static linker cannot consume them.

On Darwin16 (and Dominique reports similar on D17):
For -mcmodel=medium and -mcmodel=large we get relocation fails at link time.

So, it seems that we should;
(a) disable tests using -mcmodel={medium,large} for current darwin
(b) possibly modify the darwin-specific option parsing to warn that these are
unsupported and reset the value to "small".

Reply via email to