[PATCH] ld: enable elf32loongarch as extra target for elf64loongarch and vice versa

Project / Subsystem

binutils / ld

Date

2026-05-14

Proposer

Xi Ruoyao <xry111@xry111.site>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • May increase linker complexity slightly.
  • Potentially increases the size of the linker binary.
  • Reduces the need for building all targets, saving build time and disk space.

All attributes

project
binutils
subsystem
ld
patch_id
discussion_id
20260514171358.789613-1-xry111@xry111.site
source_type
public_inbox
title
[PATCH] ld: enable elf32loongarch as extra target for elf64loongarch and vice versa
headline
ld: Enable elf32loongarch as extra target for elf64loongarch
tldr
The patch allows building GCC with multilib support for LoongArch without needing `--enable-targets=all` in the binutils configuration.
proposer
Xi Ruoyao <xry111@xry111.site>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • May increase linker complexity slightly.
  • Potentially increases the size of the linker binary.
  • Reduces the need for building all targets, saving build time and disk space.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • ld
  • linker
  • LoongArch
  • multilib
bugzilla_url
date
2026-05-14T00:00:00.000Z

[PATCH] ld: enable elf32loongarch as extra target for elf64loongarch and vice versa

This patch modifies the linker configuration to allow building GCC with multilib support for LoongArch, even when binutils isn’t configured with --enable-targets=all. It adds elf32loongarch as an extra target for elf64loongarch and vice versa. This simplifies the build process for developers working with LoongArch multilib configurations by avoiding the need to build all possible targets.