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

            Bug ID: 34267
           Summary: [RISC-V] GNU ld.bfd x3 reg usage conflict not rejected
           Product: binutils
           Version: 2.45
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: l784896635 at gmail dot com
  Target Milestone: ---

Created attachment 16776
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16776&action=edit
Reduced testcase

I reduced this to the attached RISC-V testcase and can reproduce it 3/3 times.
Observed: GNU ld.bfd 2.45 returns success for incompatible GP+TMP inputs in
RV32 and RV64, for both relocatable `-r` and final links.
Expected: Link ordinary GNU-as-generated RISC-V objects carrying standard psABI
`Tag_RISCV_x3_reg_usage` values where one object declares x3/gp as the global
pointer (value 1) and another declares x3 as a temporary register (value 3).

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

Reply via email to