source: scripts/patches/binutils-2.15.94.0.1-fix_strip-1.patch@ 643f8be

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 643f8be was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 811 bytes
RevLine 
[617118d]1Submitted By: Jeremy Utley <jeremy@linuxfromscratch.org>
2Initial Package Version: 2.15.94.0.1
3Upstream Status: From Upstream
4Origin: ML Post by HJ Lu - http://sources.redhat.com/ml/binutils/2004-11/msg00332.html
5Description: With this version of binutils, TLS information is lost when
6stripping libc.a. This patch fixes the problem. Binutils bugzilla id 574.
7
8diff -Naur binutils-2.15.94.0.1/bfd/elfcode.h binutils-2.15.94.0.1-new/bfd/elfcode.h
9--- binutils-2.15.94.0.1/bfd/elfcode.h 2004-11-22 20:33:31.000000000 +0000
10+++ binutils-2.15.94.0.1-new/bfd/elfcode.h 2004-12-04 20:27:06.800747251 +0000
11@@ -1158,6 +1158,9 @@
12 case STT_OBJECT:
13 sym->symbol.flags |= BSF_OBJECT;
14 break;
15+ case STT_TLS:
16+ sym->symbol.flags |= BSF_THREAD_LOCAL;
17+ break;
18 }
19
20 if (dynamic)
Note: See TracBrowser for help on using the repository browser.