Emit fewer relocations for linker relaxation

Project / Subsystem

binutils / binutils

Date

2026-07-07

Proposer

mengqinggang <mengqinggang@loongson.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Potential for increased code density by reducing relocation overhead.
  • Ensuring correctness of relaxation behavior across various instruction and relocation types.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
20260707174719.1883721-1-mengqinggang@loongson.cn
source_type
public_inbox
title
Emit fewer relocations for linker relaxation
headline
Emit fewer relocations for linker relaxation
tldr
Series aims to reduce relocation emissions during linker relaxation on LoongArch.
proposer
mengqinggang <mengqinggang@loongson.cn>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Potential for increased code density by reducing relocation overhead.
  • Ensuring correctness of relaxation behavior across various instruction and relocation types.
series_id
binutils:emit fewer relocations for linker relaxation
series_role
cover
series_parts
[]
tags
  • binutils
  • linker
  • LoongArch
  • relaxation
  • relocations
bugzilla_url
date
2026-07-07T00:00:00.000Z

Emit fewer relocations for linker relaxation

This series introduces changes to the LoongArch backend for the GNU linker, aiming to reduce the number of relocations generated during the linker relaxation process. By optimizing relocation handling for label subtraction and alignment, the changes seek to improve code density and potentially performance. The series contains four patches, with the first addressing TLS descriptor relocation sizes.