blob: e1b17ffe59ffc1eb8b750815a42e714204a5c7f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
diff -rBbc src/unexelf1.c src/unexelf1.c
*** src/unexelf1.c Sat Aug 10 06:56:52 1996
--- src/unexelf1.c Sat Dec 29 03:49:32 2001
***************
*** 423,434 ****
#include <elf.h>
#include <sys/mman.h>
! #ifdef __alpha__
# include <sym.h> /* get COFF debugging symbol table declaration */
#endif
#if __GNU_LIBRARY__ - 0 >= 6
# include <link.h> /* get ElfW etc */
#endif
#ifndef ElfW
--- 423,472 ----
#include <elf.h>
#include <sys/mman.h>
! #if defined(__alpha__) && defined(__osf__)
# include <sym.h> /* get COFF debugging symbol table declaration */
+ #else if defined(__alpha__)
+ typedef struct {
+ short magic;
+ short vstamp;
+ int ilineMax;
+ int idnMax;
+ int ipdMax;
+ int isymMax;
+ int ioptMax;
+ int iauxMax;
+ int issMax;
+ int issExtMax;
+ int ifdMax;
+ int crfd;
+ int iextMax;
+ long cbLine;
+ long cbLineOffset;
+ long cbDnOffset;
+ long cbPdOffset;
+ long cbSymOffset;
+ long cbOptOffset;
+ long cbAuxOffset;
+ long cbSsOffset;
+ long cbSsExtOffset;
+ long cbFdOffset;
+ long cbRfdOffset;
+ long cbExtOffset;
+ } HDRR, *pHDRR;
+ #define cbHDRR sizeof(HDRR)
+ #define hdrNil ((pHDRR)0)
#endif
#if __GNU_LIBRARY__ - 0 >= 6
# include <link.h> /* get ElfW etc */
+ #endif
+
+ #ifdef __FreeBSD__
+ # ifdef __STDC__
+ # define ElfW(type) Elf_##type
+ # else
+ # define ElfW(type) Elf_/**/type
+ # endif
#endif
#ifndef ElfW
|