Landing: 39f1b650433d

Project / Subsystem

gcc / gcc

Date

2026-04-28

Author

Tharo

Commit

39f1b650433d3ccf1c921152d352a9728bb08f6e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
39f1b650433d3ccf1c921152d352a9728bb08f6e
source_type
github
headline
Update EnableTaggingAbi for RISC-V Linux.
tldr
GCC now correctly enables pointer tagging in the userspace ABI for RISC-V Linux, fixing an error during HWASAN initialization.
author
Tharo
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • hwasan
  • abi
  • memory safety
discussion_id_link
bugzilla_pr
date
2026-04-28T00:00:00.000Z

This commit updates the EnableTaggingAbi function for RISC-V Linux to correctly request the required number of masked pointer bits. Previously, an error occurred when enabling the tagged address syscall ABI, particularly when using HWASAN with the Spike simulator. This fix ensures that the tagged address syscall ABI can be successfully enabled, facilitating HWASAN support on RISC-V.