Re: [PATCH] RISC-V: Also output undefined symbols as dynamic symbols

Project / Subsystem

binutils / risc-v

Date

2026-05-14

Proposer

Vivian Wang <wangruikang@iscas.ac.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Restores a previous behavior that may not be the ideal long-term solution.
  • Potential for different behavior compared to other architectures.

All attributes

project
binutils
subsystem
risc-v
patch_id
discussion_id
0965fef2-6c0f-4e0a-9d41-e757b9fea708@iscas.ac.cn
source_type
public_inbox
title
Re: [PATCH] RISC-V: Also output undefined symbols as dynamic symbols
headline
RISC-V: Also output undefined symbols as dynamic symbols
tldr
Reverts a change that caused incorrect handling of undefined symbols in RISC-V binaries when linking with `--unresolved-symbols=ignore-in-object-file`.
proposer
Vivian Wang <wangruikang@iscas.ac.cn>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Restores a previous behavior that may not be the ideal long-term solution.
  • Potential for different behavior compared to other architectures.
series_id
series_role
standalone
series_parts
[]
tags
  • risc-v
  • linker
  • undefined symbols
  • dynamic linking
  • symbol table
bugzilla_url
date
2026-05-14T00:00:00.000Z

Re: [PATCH] RISC-V: Also output undefined symbols as dynamic symbols

This patch addresses an issue in the RISC-V linker where undefined symbols were not being handled correctly when linking with the --unresolved-symbols=ignore-in-object-file option. The patch restores previous behavior by ensuring that undefined symbols are output as dynamic symbols. This fixes problems where the linker would generate incorrect code or error messages. The proposer clarifies that the patch restores previous behavior and avoids a specific bogus error message.