Announcement

Collapse
No announcement yet.

Mold 2.3 Linker Allows Removing Superfluous ENDBR64 Instructions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by justinkb View Post
    I don't think it's the job of the linker to be fucking with the opcodes produced by the compiler (other than massaging location opcodes), that seems totally out of scope
    the compiler might not know whether a target resides literally next to the code or in different dso and needs a few indirections.
    alot of problems and inefficiencies could be removed if there had been a proper way to communicate the intent to the linker right from the start (like offering a set of compatible opcodes and the linker can pick the fastest)

    Comment

    Working...
    X