Statically linking glibc fails on BFD assertion because glibc is compiled with thread local storage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Binutils |
Incomplete
|
Undecided
|
Unassigned | ||
Linaro GCC |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
The current version of the Linaro toolchain (13.10) fails to statically link against the provided glibc. This is because the provided glibc contains thread local storage sections of type .tbss and .tdata which in turn fails against a bug in binutils.
The actual bug is located in binutils elf.c line 4104, which generates a fake assertion when reaching a thread local storage section assertion. I already submitted a bug report on binutils' bugzilla (https:/
This bug for some reason manifests itself only in the 32-bit version as far as I can tell.
Thanks,
Tsvi
Changed in binutils-linaro: | |
status: | New → Incomplete |
Hi,
Is it still possible to reproduce this issue with recent tools?
If so do you have an example command line that shows the problem?
Thanks,