diff options
author | Alex Sverdlin <alexander.sverdlin@nokia.com> | 2021-05-05 07:56:30 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-06-07 12:56:20 +0100 |
commit | 4e271701c17dee70c6e1351c4d7d42e70405c6a9 (patch) | |
tree | a043f2d9ca053cb04c975c5dd99a094752c9126e /arch/arm/include/asm/module.h | |
parent | 331f5f63c30c725ee3e7109c2e6173d5244b6079 (diff) | |
download | linux-4e271701c17dee70c6e1351c4d7d42e70405c6a9.tar.bz2 |
ARM: 9077/1: PLT: Move struct plt_entries definition to header
No functional change, later it will be re-used in several files.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/module.h')
-rw-r--r-- | arch/arm/include/asm/module.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h index 4b0df09cbe67..09b9ad55b83d 100644 --- a/arch/arm/include/asm/module.h +++ b/arch/arm/include/asm/module.h @@ -19,6 +19,15 @@ enum { }; #endif +#define PLT_ENT_STRIDE L1_CACHE_BYTES +#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32)) +#define PLT_ENT_SIZE (sizeof(struct plt_entries) / PLT_ENT_COUNT) + +struct plt_entries { + u32 ldr[PLT_ENT_COUNT]; + u32 lit[PLT_ENT_COUNT]; +}; + struct mod_plt_sec { struct elf32_shdr *plt; int plt_count; |