www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19622] New: rt.section_elf_shared: Support shared libraries

https://issues.dlang.org/show_bug.cgi?id=19622

          Issue ID: 19622
           Summary: rt.section_elf_shared: Support shared libraries on
                    MIPS and RISCV
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Both targets #define DL_RO_DYN_SECTION 1, which means that glibc won't adjust
.dynamic section on start-up.

We must do it ourselves in section_elf_shared, see the version paths for
OpenBSD and NetBSD for how.

---
strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); 
---

--
Jan 26