Marc Hartmayer
8944c2f60d
zdump: dfi_elf: refactor read_elf_(ehdr|phdrs)
...
Make the function unit testable and easier to reuse - no functional change.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-10-22 20:27:16 +02:00
Marc Hartmayer
776e5d41d7
zdump: dfi_elf: factor out some ELF functionalities
...
This makes them reuseable and testable.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-10-22 20:27:16 +02:00
Marc Hartmayer
8d7e8a87b5
zdump: df_elf: move function documentation to function declarations
...
It's more common to have the function documentation next to the function
declarations.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Acked-by: Steffen Eiden <seiden@linux.ibm.com >
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-10-22 20:27:16 +02:00
Marc Hartmayer
e24d8c936c
zdump: move NOTE_NAME_* definitions to df_elf.h
...
This allows the reuse in other source files.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Acked-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-10-22 20:27:16 +02:00
Marc Hartmayer
39b6c4a273
zdump: introduce ELF_NOTE_ROUNDUP macro
...
Introduce and use `ELF_NOTE_ROUNDUP` macro.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com >
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2022-10-22 20:27:16 +02:00
Alexander Egorenkov
ef88fac874
zdump: Extract common ELF routines from dfo_elf and move to df_elf
...
The primary goal of this change is to split DFO ELF module into
multiple smaller ones for better unit testability.
The change doesn't introduce any functionality changes, just shuffling code
around.
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2021-12-09 16:19:25 +01:00
Alexander Egorenkov
d2990db15f
zdump/df_elf.h: Remove unused header include
...
df_elf.h doesn't use anything from dfo.h
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2021-11-17 15:48:22 +01:00
Philipp Rudo
244bf4e550
zdump: Make use of __packed macro
...
Make use of the pre-defined __packed macro throughout zdump.
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com >
Reviewed-by: Stefan Haberland <sth@linux.ibm.com >
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com >
2019-12-12 18:04:32 +01:00
Michael Holzheu
b627b8d8e1
Initial s390-tools-2.0.0 import
...
This commit is based on the s390-tools-1.39.0 version.
Changes on top of s390-tools-1.39.0:
- Add MIT license to all source files
- Add LICENSE file
- Transform REAMDE to README.md (markdown)
- Add AUTHORS.md file
- Add CONTRIBUTING.md file
- Move changelog from README to CHANGELOG.md file
Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com >
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com >
2017-08-21 10:55:40 +02:00