]> git.dujemihanovic.xyz Git - u-boot.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)
commit07c052be51d26264a865ae3634964beddca1e1f1
tree61256c8e3382f1be337782573edea20e90005e30
parent81169ae64872eaa99304df70422f9c674755d0c5
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