Re: [PATCH 0/3] ld: shared library and PIE support for riscv*-elf and loongarch*-elf
Project / Subsystem
binutils / ld
Date
2026-09-04
Proposer
Jan Beulich <jbeulich@suse.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Enabling PIE/shared lib for bare-metal might be a workaround for UEFI, potentially not the cleanest solution.
- • Direct PE linking support could be more robust but might require more significant changes.
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- discussion_id
- 3f670b99-73b0-4212-9451-3aeafb44d88a@suse.com
- source_type
- public_inbox
- title
- Re: [PATCH 0/3] ld: shared library and PIE support for riscv*-elf and loongarch*-elf
- headline
- UEFI PE linking on bare-metal targets
- tldr
- Discusses proper linking of PE binaries on bare-metal targets vs. enabling PIE/shared lib for UEFI.
- proposer
- Jan Beulich <jbeulich@suse.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Enabling PIE/shared lib for bare-metal might be a workaround for UEFI, potentially not the cleanest solution.
- • Direct PE linking support could be more robust but might require more significant changes.
- series_id
- binutils:ld: shared library and pie support for riscv*-elf and loongarch*-elf
- series_role
- cover
- series_parts
-
- • {"title":"ld: shared library and PIE support for riscv*-elf and loongarch*-elf","url":"https://inbox.sourceware.org/binutils/-w8nVtklFMF5sVUSH64C5tSTBhNeakYCcXlp3ozRPvcdFCgP4rQG0KtIyRHbx3Z1rpZRD-52KlKbfujCpuheVo38-wbyboL47NZar6VU_68=@protonmail.com"}
- tags
-
- • ld
- • risc-v
- • loongarch
- • pie
- • shared libraries
- bugzilla_url
- —
- date
- 2026-09-04T00:00:00.000Z
Re: [PATCH 0/3] ld: shared library and PIE support for riscv*-elf and loongarch*-elf
Jan Beulich questions the approach of enabling shared library and PIE support for riscv*-elf and loongarch*-elf targets solely for UEFI application development. He suggests that directly supporting the linking of PE binaries from ELF inputs, as done on x86-64, might be a more robust solution if UEFI is the primary concern. This comes as a response to a patch series that aims to enable these features for bare-metal targets.