Landing: 196286d25ccc

Project / Subsystem

binutils / loongarch

Date

2026-09-27

Author

liu zhensong <liuzhensong@sourceware.org>

Commit

196286d25ccc652dc086ae173d1cfa836bed0618

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
loongarch
patch_id
—
commit_hash
196286d25ccc652dc086ae173d1cfa836bed0618
source_type
public_inbox
headline
LoongArch: Enable shared library and PIE support
tldr
Binutils now supports shared libraries and Position-Independent Executables (PIE) for LoongArch ELF targets.
author
liu zhensong <liuzhensong@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • loongarch
  • • binutils
  • • linker
  • • shared library
  • • PIE
discussion_id_link
—
bugzilla_pr
—
date
2026-09-27T00:00:00.000Z

Binutils has enabled support for building shared libraries and Position-Independent Executables (PIE) for LoongArch ELF targets (loongarch*-elf). Previously, these targets withheld the necessary scripts (GENERATE_SHLIB_SCRIPT, GENERATE_PIE_SCRIPT), preventing the linker (ld) from accepting -shared and -pie flags. This change aligns LoongArch with RISC-V by unconditionally enabling these scripts, allowing for more flexible and modern executable and library creation on the architecture.