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

            Bug ID: 34254
           Summary: [RISC-V] GNU ld.bfd no copy on protected property
                    ignored
           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 16763
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16763&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 even when the consumer regular input
object explicitly carries `GNU_PROPERTY_NO_COPY_ON_PROTECTED`, preserves
`Properties: no copy on protected` in the final executable, and still emits
`R_RISCV_COPY x` for protected data.
Expected: Link valid RISC-V executables whose regular input object explicitly
carries `GNU_PROPERTY_NO_COPY_ON_PROTECTED`, while taking the address of a
`.protected` data object from a shared object with `la a0, x`.

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

Reply via email to