bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28372] New: [RISCV] wrong attribute of version number generated


From: cooper.qu at linux dot alibaba.com
Subject: [Bug gas/28372] New: [RISCV] wrong attribute of version number generated for p extension
Date: Wed, 22 Sep 2021 07:42:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28372

            Bug ID: 28372
           Summary: [RISCV] wrong attribute of version number generated
                    for p extension
           Product: binutils
           Version: 2.38 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: cooper.qu at linux dot alibaba.com
  Target Milestone: ---

A simple assemble file a.s written as following:
       nop


When execute './gas/as-new -march=rv64imacp9p3 a.s -o a.o',
then './binutils/readelf -A a.o'. The output is:
    Attribute Section: riscv
    File Attributes
      Tag_RISCV_arch: "rv64i2p0_m2p0_a2p0_c9p3"
The 'p9p3' is supposed to specify the 0.9.3 p-ext, but the version number
points to c extension.


Then I execute './gas/as-new -march=rv64imacpp9p3 a.s -o a.o &&
./binutils/readelf -A a.o'. The output is:
    Attribute Section: riscv
    File Attributes
      Tag_RISCV_arch: "rv64i2p0_m2p0_a2p0_c0p0_p9p3"
The p-ext version is in line with expectations, but the c version becomes 0p0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]