<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/linker-pessimization-trgqfz2js" -->

---
title: Linker Pessimization | daily.dev
description: When linking massive binaries that include Intel&#x27;s prebuilt MKL static archive, relocation overflows occur because MKL&#x27;s object files use LEA instructions with...
canonical: https://daily.dev/posts/linker-pessimization-trgqfz2js
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Linker Pessimization | daily.dev
og:description: When linking massive binaries that include Intel&#x27;s prebuilt MKL static archive, relocation overflows occur because MKL&#x27;s object files use LEA instructions with...
og:url: https://daily.dev/posts/linker-pessimization-trgqfz2js
og:image: https://api.daily.dev/og/posts/TRgqFZ2Js.png
og:image:alt: Linker Pessimization
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Linker Pessimization

**[Farid Zakaria’s Blog](https://daily.dev/sources/fzakaria)** · 6 min read · 2 upvotes · 0 comments

## Summary

When linking massive binaries that include Intel's prebuilt MKL static archive, relocation overflows occur because MKL's object files use LEA instructions with large negative addends that exceed the ±2 GiB limit of 32-bit PC-relative relocations. Since MKL can't be recompiled, a technique called 'linker pessimization' is introduced: the reverse of linker relaxation. Instead of shrinking instructions, a single opcode byte is changed (0x8D → 0x8B) to convert a LEA into a MOV, replacing a direct arithmetic computation with an indirect memory load through a nearby pointer slot. The pointer slot uses a 64-bit absolute R_X86_64_64 relocation that can address the full 64-bit address space without overflow. The fix requires three surgical changes to the object file: patching the opcode, creating a new .data.fixup section with the 64-bit pointer, and retargeting the original relocation. The trade-off is an extra memory load where pure arithmetic existed before.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://fzakaria.com/2026/02/18/linker-pessimization>

## Similar posts on daily.dev

- [Huge binaries](https://daily.dev/posts/huge-binaries-wnxpejcac) · Farid Zakaria’s Blog · 0 upvotes · 0 comments
- [Linux Kernel Considers Linking The Relocatable x86 Kernel As PIE In 2026](https://daily.dev/posts/linux-kernel-considers-linking-the-relocatable-x86-kernel-as-pie-in-2026-owvbwsmts) · Phoronix · 0 upvotes · 0 comments
- [Crazy shit linkers do: Relaxation](https://daily.dev/posts/crazy-shit-linkers-do-relaxation-mgykma9pk) · Farid Zakaria’s Blog · 0 upvotes · 0 comments
- [Addressing the adding situation — Matt Godbolt’s blog](https://daily.dev/posts/addressing-the-adding-situation-matt-godbolt-s-blog-isnhyo6d6) · Hacker News · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/linker-pessimization-trgqfz2js)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Linker Pessimization","url":"https://daily.dev/posts/linker-pessimization-trgqfz2js","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/linker-pessimization-trgqfz2js"},"datePublished":"2026-02-18T17:10:27.965Z","dateModified":"2026-02-18T17:10:53.025Z","description":"When linking massive binaries that include Intel's prebuilt MKL static archive, relocation overflows occur because MKL's object files use LEA instructions with...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"Farid Zakaria’s Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Farid Zakaria’s Blog","logo":"https://media.daily.dev/image/upload/s--YqqvRt90--/f_auto/v1723789280/logos/fzakaria","url":"https://daily.dev/sources/fzakaria"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/linker-pessimization-trgqfz2js","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Farid Zakaria’s Blog","item":"https://daily.dev/sources/fzakaria"},{"@type":"ListItem","position":3,"name":"Linker Pessimization"}]}
```

