Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2023 17:08:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 271726] lib/libc: tests fail with PIE
Message-ID:  <bug-271726-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271726

            Bug ID: 271726
           Summary: lib/libc: tests fail with PIE
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: tests
          Assignee: testing@FreeBSD.org
          Reporter: fuz@FreeBSD.org
 Attachment #242498 text/plain
         mime type:

Created attachment 242498
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242498&action=
=3Dedit
make check log

On 14-CURRENT, commit b50e1465e88dcf5f6f008892d802df010e7029d1.

I'm trying to run the libc test suite by doing

    cd /usr/src/lib/libc && make check

this fails with PIC errors when the system is build with WITH_PIE (default =
on
amd64):

cc -O2 -pipe -fno-common -DTEST_LONG_DOUBLE -D__HAVE_LONG_DOUBLE
-I/usr/src/lib/libc/tests/gen -I/usr/src/include -fPIE -g -gz=3Dzlib -std=
=3Dgnu99
-Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -=
Wall
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wdate-time
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=3Dunused-but-set-variable -Wno-error=3Dunused-but-set-parameter
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Qunused-arguments  -Wl,-zrelro -pie  -o
getentropy_test.full getentropy_test.o  -lprivateatf-c
-L/usr/obj/usr/src/amd64.amd64/lib/libc -lc
ld: error: cannot preempt symbol: _DYNAMIC
>>> referenced by libc_start1.c:144 (/usr/src/lib/libc/csu/libc_start1.c:14=
4)
>>>               libc_start1.o:(__libc_start1) in archive /usr/obj/usr/src=
/amd64.amd64/lib/libc/libc.a

See also attached log file.

The test suite runs without problems when instead being built with
WITHOUT_PIE=3Dyes in /etc/src.conf

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271726-32464>