NetBSD-Bugs archive

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

xsrc/55762: built with text relocations, fails to run

>Number:         55762
>Category:       xsrc
>Synopsis: built with text relocations, fails to run
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 28 19:45:00 +0000 2020
>Originator:     coypu
>Release:        NetBSD 9.99.74
netbsd 9.99.74 i386
destdir.i386 [1]> env LIBGL_DRIVERS_PATH=./usr/X11R7/lib/modules/dri LIBGL_ALWAYS_SOFTWARE=1 LD_LIBRARY_PATH=./usr/X11R7/lib:./usr/lib ./usr/X11R7/bin/glxgears
./usr/X11R7/lib/ text relocations
./usr/X11R7/lib/ text relocations

If adding

CFLAGS+= -Wl,--warn-shared-textrel

And rebuilding src/external/mit/xorg/lib/libGL:

ld: libGL_pic.a(entry.pico): warning: relocation against `_glapi_get_dispatch' in read-only section `.text'
warning: creating a DT_TEXTREL in a shared object

This likely occurred from disabling GLX_USE_TLS and shuffling asm code around (so now we use entry_x86_tsd.h instead of entry_x86_tls.h)

Note that we DO have:


X11ASM_CPPFLAGS.i386+=  \
        -DUSE_X86_ASM \



Home | Main Index | Thread Index | Old Index