From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/binutils/2.17: 08_all_binutils-2.17-GNU_HASH.patch |
Date: | Sat, 06 Oct 2007 17:50:05 |
Message-Id: | E1IeDdj-0000vk-Al@stork.gentoo.org |
1 | vapier 07/10/06 17:40:35 |
2 | |
3 | Added: 08_all_binutils-2.17-GNU_HASH.patch |
4 | Log: |
5 | make GNU hash backwards compat |
6 | |
7 | Revision Changes Path |
8 | 1.1 src/patchsets/binutils/2.17/08_all_binutils-2.17-GNU_HASH.patch |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.17/08_all_binutils-2.17-GNU_HASH.patch?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.17/08_all_binutils-2.17-GNU_HASH.patch?rev=1.1&content-type=text/plain |
12 | |
13 | Index: 08_all_binutils-2.17-GNU_HASH.patch |
14 | =================================================================== |
15 | add min changes to get GNU_HASH recognized so anal bfd's don't reject |
16 | objects that contain this section |
17 | |
18 | building a lib.so with binutils-2.18 and GNU_HASH and then link with |
19 | binutils-2.17 will result in failure on some (like x86_64) systems |
20 | |
21 | http://sourceware.org/ml/binutils/2007-08/msg00198.html |
22 | |
23 | --- include/elf/common.h |
24 | +++ include/elf/common.h |
25 | @@ -338,6 +338,7 @@ |
26 | #define SHT_LOOS 0x60000000 /* First of OS specific semantics */ |
27 | #define SHT_HIOS 0x6fffffff /* Last of OS specific semantics */ |
28 | |
29 | +#define SHT_GNU_HASH 0x6ffffff6 /* GNU style symbol hash table */ |
30 | #define SHT_GNU_LIBLIST 0x6ffffff7 /* List of prelink dependencies */ |
31 | |
32 | /* The next three section types are defined by Solaris, and are named |
33 | --- bfd/elf.c |
34 | +++ bfd/elf.c |
35 | @@ -1822,6 +1822,7 @@ bfd_section_from_shdr (bfd *abfd, unsign |
36 | case SHT_FINI_ARRAY: /* .fini_array section. */ |
37 | case SHT_PREINIT_ARRAY: /* .preinit_array section. */ |
38 | case SHT_GNU_LIBLIST: /* .gnu.liblist section. */ |
39 | + case SHT_GNU_HASH: /* .gnu.hash section. */ |
40 | return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); |
41 | |
42 | case SHT_DYNAMIC: /* Dynamic linking information. */ |
43 | |
44 | |
45 | |
46 | -- |
47 | gentoo-commits@g.o mailing list |