Coder Social home page Coder Social logo

Comments (12)

keith avatar keith commented on June 16, 2024 3

You can pass -fno-objc-msgsend-selector-stubs to your compiles to avoid this

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

Perhaps I'll just make that the default for now

from zld.

keith avatar keith commented on June 16, 2024

You have to do that to clang for each object compile, not ld unfortunately

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

Do you know if lld has a plan for fixing this?

from zld.

keith avatar keith commented on June 16, 2024

I started looking at it this morning, not sure how far i'll get

from zld.

aleksandergrzyb avatar aleksandergrzyb commented on June 16, 2024

👋, is there any progress regarding this issue? 👀

from zld.

keith avatar keith commented on June 16, 2024

Sorry to be clear I started working on this for LLD, tracked here llvm/llvm-project#56034, for zld to get this it would either require @michaeleisel to implement it entirely, or apple to update their open source dump of ld64 and zld rebase on it. I would suggest disabling it with -fno-objc-msgsend-selector-stubs in the meantime

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

i may just turn that flag on by default

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

oh wait, right, it's a clang flag, not an ld one

from zld.

PhilCai1993 avatar PhilCai1993 commented on June 16, 2024

I noticed that even if you put -fno-objc-msgsend-selector-stubs for all clang invocations, if -miphoneos-version-min=8.0 is presented in the linker command, the _objc_msgSend issue will happen too.

The linker passes after changing the flag to -miphoneos-version-min=10.0

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

so, my plan is that i will not be fixing this bug. instead, i will detect when it occurs, and in the error message tell the user either to add the -fno-objc-msgsend-selector-stubs flag to their compilations, or else switch to lld. i am working with the lld people to make user-friendly lld install docs to send people to

from zld.

michaeleisel avatar michaeleisel commented on June 16, 2024

1.3.6 has a better error message for this, including a link to the new mach-o lld docs

from zld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.