[PATCH 3/3] LoongArch: Enable shared library and PIE support for loongarch*-elf

Project / Subsystem

binutils / loongarch

Date

2026-09-03

Proposer

mintsuki <mintsuki@protonmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Enables functionality that was previously disabled, potentially uncovering or introducing new issues on bare-metal targets.
  • • Aligns LoongArch bare-metal capabilities with other ELF targets that support shared libraries and PIE.

All attributes

project
binutils
subsystem
loongarch
patch_id
—
discussion_id
xNxiTDeYjvXtAxtxnW56SEn6-MaCLHOHNy04Rs6UgQyaoaF-psGViNlOU7k5CDWEYzINbfoOSdubntpcx10wld1LQFelo15ZNCOxn2HGcxc=@protonmail.com
source_type
public_inbox
title
[PATCH 3/3] LoongArch: Enable shared library and PIE support for loongarch*-elf
headline
LoongArch: Enable shared library and PIE for loongarch*-elf
tldr
Enables shared library and PIE support for LoongArch bare-metal targets.
proposer
mintsuki <mintsuki@protonmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Enables functionality that was previously disabled, potentially uncovering or introducing new issues on bare-metal targets.
  • • Aligns LoongArch bare-metal capabilities with other ELF targets that support shared libraries and PIE.
series_id
binutils:loongarch: enable shared library and pie support for loongarch*-elf
series_role
reply
series_parts
[]
tags
  • • loongarch
  • • ld
  • • shared libraries
  • • pie
  • • bare-metal
bugzilla_url
—
date
2026-09-03T00:00:00.000Z

[PATCH 3/3] LoongArch: Enable shared library and PIE support for loongarch*-elf

This patch enables shared library and PIE (Position Independent Executable) support for loongarch*-elf targets by modifying the emulparams files. Previously, these features were explicitly disabled for LoongArch bare-metal, a restriction inherited from RISC-V without clear justification. Enabling these features is necessary for building UEFI applications on these platforms and aligns with the capabilities provided to other bare-metal ELF targets.