[PATCH 2/3] ld: Pin the hash style in the LoongArch DT_RELR shared tests
Project / Subsystem
binutils / ld
Date
2026-09-03
Proposer
mintsuki <mintsuki@protonmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Ensures test stability by fixing expectations related to hash style.
- • Makes the tests less flexible regarding the default linker behavior but more reliable.
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- discussion_id
- QXxie6f1nYx2v6HGPjRGaIyTIxseNQZ7Lwb39fSMi6XgE-ftXUTyJSSbeevySD3jmM1pN2CWCiQgsdw3XUB73yGfyfiLNI1tIgr_kQ-0FtA=@protonmail.com
- source_type
- public_inbox
- title
- [PATCH 2/3] ld: Pin the hash style in the LoongArch DT_RELR shared tests
- headline
- LoongArch tests: Pin hash style for DT_RELR shared objects
- tldr
- Pins the hash style to 'both' for LoongArch DT_RELR shared library tests.
- proposer
- mintsuki <mintsuki@protonmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Ensures test stability by fixing expectations related to hash style.
- • Makes the tests less flexible regarding the default linker behavior but more reliable.
- series_id
- binutils:ld: pin the hash style in the loongarch dt_relr shared tests
- series_role
- reply
- series_parts
- []
- tags
-
- • ld
- • loongarch
- • testing
- • relocations
- • hash style
- bugzilla_url
- —
- date
- 2026-09-03T00:00:00.000Z
[PATCH 2/3] ld: Pin the hash style in the LoongArch DT_RELR shared tests
This patch pins the hash style to --hash-style=both for three LoongArch DT_RELR shared library tests. This is necessary because the tests rely on specific symbol indices in the .rela.dyn section, which are dependent on the linker’s hash style (GNU vs. SYSV). The bare-metal default is SYSV, but the tests were written against the GNU hash style. Pinning the style ensures consistent test results and is a prerequisite for the following patch that enables shared library and PIE support for LoongArch.