Opened 4 years ago
Closed 4 years ago
#5012 closed enhancement (fixed)
add binutils i386 TLS patch
| Reported by: | Xi Ruoyao | Owned by: | lfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 11.1 |
| Component: | Book | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by )
There is a bug causing OpenJDK FTBFS on 32-bit x86: https://sourceware.org/bugzilla/show_bug.cgi?id=28894, and there is no easy way to workaround.
Patch for 2.38: https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=ae1cab7d
If we want to ensure that we won't need to retag packages, we can make the patch command conditional by wrapping it in case $(uname -m) in i?86 ).
Change History (3)
comment:1 by , 4 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Can be made with a sed (does not add the testcase):
sed -i "/R_386_TLS_LE /{p;s/LE/IE/}" -i bfd/elfxx-x86.hwill add the new line after the one containing R_386_TLS_LE instead of before as in the patch. Shouldn't change the produced binaries though.