[Bug 224442] lang/php56: contains relocations in read-only segment

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 19 02:18:41 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224442

            Bug ID: 224442
           Summary: lang/php56: contains relocations in read-only segment
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale at FreeBSD.org
          Reporter: emaste at freebsd.org
          Assignee: ale at FreeBSD.org
             Flags: maintainer-feedback?(ale at FreeBSD.org)

Testing in the i386 lld exp-run found a number of instances of read-only
segments (presumably .text) containing relocations, which is undesirable.

For example:

/usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol:
php_date_global_timezone_db in readonly segment
>>> defined in ext/date/.libs/php_date.o
>>> referenced by /wrkdirs/usr/ports/lang/php56/work/php-5.6.32/ext/date/php_date.c
>>>               ext/date/.libs/php_date.o:(zif_strtotime)

/usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol:
php_date_global_timezone_db in readonly segment
>>> defined in ext/date/.libs/php_date.o
>>> referenced by /wrkdirs/usr/ports/lang/php56/work/php-5.6.32/ext/date/php_date.c
>>>               ext/date/.libs/php_date.o:(zif_strtotime)

Simple workaround is to add LDFLAGS+=-Wl,-z,notext which turns off lld's error
for read-only segment relocations, matching ld.bfd and ld.gold's behaviour, but
it's best if the underlying cause is fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list