[Issue 11171] New: Text relocations in Phobos shared library

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 4 04:12:15 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11171

           Summary: Text relocations in Phobos shared library
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: public at dicebot.lv


--- Comment #0 from Dicebot <public at dicebot.lv> 2013-10-04 04:12:14 PDT ---
Have noticed that issue during package maintenance for Arch Linux and reporting
by Martin Nowak request. Arch Linux automatically verifies all packages
targeting official repos with own `namcap` tool. At some point I have noticed
it warning me that `libphobos2.so` has text relocations.

This is how package is built:
https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/dmd/PKGBUILD

Essentially it is just `make -f posix.mak MODEL=$_archbits
DMD=$srcdir/dmd/src/dmd RELEASE=1`

$ uname -a
Linux vbox-arch-64 3.11.2-1-ARCH #1 SMP PREEMPT Fri Sep 27 07:35:36 CEST
2013 x86_64 GNU/Linux

$ readelf -d /usr/lib/libphobos2.so | grep TEXTREL
 0x0000000000000016 (TEXTREL)            0x0

$ eu-readelf -r /usr/lib/libphobos2.so | wc -l
18615

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list