Statically linking glibc fails on BFD assertion because glibc is compiled with thread local storage

Bug #1254618 reported by Tsvi Mostovicz
6
This bug affects 1 person
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://sourceware.org/bugzilla/show_bug.cgi?id=16212) but in the mean time we should provide a compiled glibc without thread local storage enabled.

This bug for some reason manifests itself only in the 32-bit version as far as I can tell.

Thanks,

Tsvi

Revision history for this message
Will Newton (will-newton) wrote :

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,

Changed in binutils-linaro:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.