Commit fb567a3
committed
Introduce ElfN_Nhdr type
The Elf32_Nhdr and Elf64_Nhdr types have the same size and layout. So
far we have not exploited this fact and just stuck to the existing logic
of differentiating between 32 and 64 bit types depending on the ELF
bitness, as we do elsewhere.
However, there is a certain amount of complexity associated with
supporting the two bitnesses. With this change we introduce the
ElfN_Nhdr type as an alias to Elf64_Nhdr and rely solely on it.
Signed-off-by: Daniel Müller <deso@posteo.net>1 parent c4e3f41 commit fb567a3
2 files changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
616 | 621 | | |
617 | 622 | | |
618 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 31 | + | |
38 | 32 | | |
39 | 33 | | |
40 | 34 | | |
| |||
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 72 | + | |
84 | 73 | | |
85 | | - | |
| 74 | + | |
86 | 75 | | |
87 | 76 | | |
88 | 77 | | |
| |||
0 commit comments