]> git.baikalelectronics.ru Git - uboot.git/commit
microblaze: Create SYM_ADDR macro to deal with symbols
authorMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
commite7c906c4c18621af2ed4c56e1c3b15ba833ee004
tree61256c8e3382f1be337782573edea20e90005e30
parent89c1d7740b1a8dcc0373bc5581d6e6e2d0d04922
microblaze: Create SYM_ADDR macro to deal with symbols

Symbol handling depends on compilation flags. Right now manual relocation
is used that's why symbols can be referenced just by name and there is no
need to find them out. But when position independent code (PIC) is used
symbols need to be described differently. That's why having one macro
change is easier than changing the whole code.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/d704e9a267c8b536452fb999111dbfbc9d652be5.1655299267.git.michal.simek@amd.com
arch/microblaze/cpu/start.S