]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arc/lib/relocate.c
arc: introduce separate section for interrupt vector table
[people/ms/u-boot.git] / arch / arc / lib / relocate.c
index 2482bcdffcc33103e913a5dc8ee33e0923278b18..5618b6ae938a2e9865c43ef3421b2973b7026fa5 100644 (file)
@@ -44,7 +44,7 @@ int do_elf_reloc_fixups(void)
 #ifdef __LITTLE_ENDIAN__
                        /* If location in ".text" section swap value */
                        if ((unsigned int)offset_ptr_rom <
-                           (unsigned int)&__text_end)
+                           (unsigned int)&__ivt_end)
                                val = (val << 16) | (val >> 16);
 #endif
 
@@ -55,7 +55,7 @@ int do_elf_reloc_fixups(void)
 #ifdef __LITTLE_ENDIAN__
                                /* If location in ".text" section swap value */
                                if ((unsigned int)offset_ptr_rom <
-                                   (unsigned int)&__text_end)
+                                   (unsigned int)&__ivt_end)
                                        val = (val << 16) | (val >> 16);
 #endif
                                memcpy(offset_ptr_ram, &val, sizeof(int));