[PATCH v0 0/4] 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

  • Reducing relocations can improve linker performance and potentially code size.
  • These optimizations require careful handling of instruction states and fragment boundaries to maintain correctness.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
20260707174719.1883721-1-mengqinggang@loongson.cn
source_type
public_inbox
title
[PATCH v0 0/4] Emit fewer relocations for linker relaxation
headline
LoongArch: Optimize linker relaxation by emitting fewer relocations
tldr
A series of patches for LoongArch binutils aims to reduce relocations during linker relaxation, improving efficiency.
proposer
mengqinggang <mengqinggang@loongson.cn>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Reducing relocations can improve linker performance and potentially code size.
  • These optimizations require careful handling of instruction states and fragment boundaries to maintain correctness.
series_id
binutils:emit fewer relocations for linker relaxation
series_role
cover
series_parts
[]
tags
  • loongarch
  • binutils
  • linker
  • optimization
  • compiler
bugzilla_url
date
2026-07-07T00:00:00.000Z

[PATCH v0 0/4] Emit fewer relocations for linker relaxation

This is the cover letter for a series of four patches intended to optimize linker relaxation for LoongArch targets within the binutils project. The patches address issues with TLS descriptor relocations, consolidate relaxed instructions, reduce relocations for label subtraction, and refine the emission of alignment relocations, all contributing to fewer generated relocations.