diff options
author | Clement Leger <cleger@kalray.eu> | 2020-03-02 10:38:58 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-03-25 22:29:39 -0700 |
commit | 73516a33588cde0bfa4742d857f8849da28bddd2 (patch) | |
tree | 6a783656269a22d2ec1382ac0f98ead2158d5c53 /block/Kconfig | |
parent | e4ae4b7d01699d0f3ea61bbef119f2d67e5455c0 (diff) |
remoteproc: Add elf helpers to access elf64 and elf32 fields
elf32 and elf64 mainly differ by their types. In order to avoid
copy/pasting the whole loader code, generate static inline functions
which will access values according to the elf class. It allows to
keep a common loader basis.
In order to accommodate both elf types sizes, the maximum size for a
elf header member is chosen using the maximum value of the field for
both elf class.
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200302093902.27849-5-cleger@kalray.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'block/Kconfig')
0 files changed, 0 insertions, 0 deletions