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

            Bug ID: 34259
           Summary: [RISC-V] GNU ld.bfd protected copy-reloc wrong success
                    on RISC-V
           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 16768
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16768&action=edit
Reduced testcase

I reduced this to the attached RISC-V testcase and can reproduce it 3/3 times.
Observed: GNU ld.bfd links successfully for protected non-function data
references from executable text and emits `R_RISCV_COPY x` in the final
executable.
Expected: Link valid RISC-V executables that take the address of a data object
defined in a shared object, for example `la a0, x`, where the shared object's
definition of `x` is `.protected`.

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

Reply via email to