summaryrefslogtreecommitdiff
path: root/drivers/timer/xilinx-timer.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2022-06-24 14:15:00 +0200
committerMichal Simek <michal.simek@amd.com>2022-06-24 14:15:00 +0200
commit034944b33bc8dd42dd90f9d043c5c03cc0036f01 (patch)
tree128fabb9c80157143b3780e6bf37eb94053d7cfc /drivers/timer/xilinx-timer.c
parent30fb8d29cd3e7a682dfb89f40c4702c0a4029615 (diff)
tools: relocate-rela: Add support for 32bit Microblaze relocation
Microblaze is 32bit that's why it is using elf32 format. Relocation code requires to get information about rela and dynsym senctions and also text base which was used for compilation. Code build with -fPIC and linked with -pic generates 4 relocation types. R_MICROBLAZE_NONE is the easiest one which doesn't require any action. R_MICROBLAZE_REL only requires write addend to r_offset address. R_MICROBLAZE_32/R_MICROBLAZE_GLOB_DAT are the most complicated. There is a need to find out symbol value with adding symbol value and write it to address pointed by r_offset. Calculation with addend is also added but only 0 addend values are generated now. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/9912c3d76933bdf75e1ebb6aab43726cd32cafb5.1655299267.git.michal.simek@amd.com
Diffstat (limited to 'drivers/timer/xilinx-timer.c')
0 files changed, 0 insertions, 0 deletions