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

--- Comment #1 from Ard Biesheuvel <ardb at kernel dot org> ---
I don't think -mdirect-extern-access should be used when creating shared
libraries,  is there any reason in particular this is being used?

However, given that this is a function call, I'd expect the direct version to
be emitted as 'call mcount@PLT' rather than 'call mcount' - this may be an
oversight on my part when I added this support for -mdirect-extern-access

Reply via email to