Opened 2 years ago

Closed 2 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 Xi Ruoyao)

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 Xi Ruoyao, 2 years ago

Description: modified (diff)

comment:2 by pierre, 2 years ago

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.h

will 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.

comment:3 by Xi Ruoyao, 2 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.