mwl8k: remove synchronous device init hack
[librecmc/librecmc.git] / package / libs / elfutils / patches / 110-elf_compressed_header_support.patch
1 --- a/libelf/libelf.h
2 +++ b/libelf/libelf.h
3 @@ -36,6 +36,30 @@
4  /* Get the ELF types.  */
5  #include <elf.h>
6  
7 +#ifndef ELFCOMPRESS_ZLIB
8 +typedef struct
9 +{
10 +  Elf32_Word   ch_type;        /* Compression format.  */
11 +  Elf32_Word   ch_size;        /* Uncompressed data size.  */
12 +  Elf32_Word   ch_addralign;   /* Uncompressed data alignment.  */
13 +} Elf32_Chdr;
14 +
15 +typedef struct
16 +{
17 +  Elf64_Word   ch_type;        /* Compression format.  */
18 +  Elf64_Word   ch_reserved;
19 +  Elf64_Xword  ch_size;        /* Uncompressed data size.  */
20 +  Elf64_Xword  ch_addralign;   /* Uncompressed data alignment.  */
21 +} Elf64_Chdr;
22 +
23 +/* Legal values for ch_type (compression algorithm).  */
24 +#define ELFCOMPRESS_ZLIB       1          /* ZLIB/DEFLATE algorithm.  */
25 +#define ELFCOMPRESS_LOOS       0x60000000 /* Start of OS-specific.  */
26 +#define ELFCOMPRESS_HIOS       0x6fffffff /* End of OS-specific.  */
27 +#define ELFCOMPRESS_LOPROC     0x70000000 /* Start of processor-specific.  */
28 +#define ELFCOMPRESS_HIPROC     0x7fffffff /* End of processor-specific.  */
29 +#endif
30 +
31  #ifndef _LIBC
32  #ifndef __mempcpy
33  #define __mempcpy mempcpy