[Bug 236880] dlopen() of .so with tls fails on (32-bit) arm
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 29 14:00:56 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236880
Bug ID: 236880
Summary: dlopen() of .so with tls fails on (32-bit) arm
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: arm
Assignee: freebsd-arm at FreeBSD.org
Reporter: emaste at freebsd.org
On amd64, arm64 dlopen()ing a .so with TLS vars succeeds but vars are not
initialized; see kib@'s https://reviews.freebsd.org/D19072 for a patch to
address that.
On (32-bit) arm dlopen() of the TLS .so fails, with or without kib's patch.
Test code: https://github.com/emaste/test-tls-initial-exec
On amd64 or arm64 without the patch:
% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
*** Signal 11
Stop.
On amd64 or arm64 with the patch:
% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
foo: 2016
On armv7 with or without the patch (tested on BeagleBone Black):
% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
dlopen: dlerror() returned NULL, huh?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-arm
mailing list