bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24673] [RISCV] -fPIC -pie and -fPIC -no-pie create unexpected R_


From: wilson at gcc dot gnu.org
Subject: [Bug ld/24673] [RISCV] -fPIC -pie and -fPIC -no-pie create unexpected R_RISCV_NONE R_RISCV_DTPMOD64 relocations
Date: Thu, 13 Jun 2019 17:03:27 +0000

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

--- Comment #3 from Jim Wilson <wilson at gcc dot gnu.org> ---
Via IRC, elfnn-riscv.c circa line 563 has
        case R_RISCV_TLS_GOT_HI20:
          if (bfd_link_pic (info))
            info->flags |= DF_STATIC_TLS;
where this should be bfd_link_dll instead of bfd_link_pic.

The mips port uses bfd_link_pic.  The ppc64 port uses bfd_link_dll.  The x86_64
port uses !bfd_link_executable.  Maybe this is ABI dependent, or maybe lots of
ports are getting it wrong.  Anyways, I will have to look at this later.

-- 
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]