grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/7] mkimage: make R_ARM_ABS32 debug output more consistent


From: Ian Campbell
Subject: [PATCH 4/7] mkimage: make R_ARM_ABS32 debug output more consistent
Date: Sun, 29 Dec 2013 18:47:33 +0000

The decimal target is not very useful and all the other arm reloc debugging
prints a hex target and offset, so do the same.

Signed-off-by: Ian Campbell <address@hidden>
---
 util/grub-mkimagexx.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c
index 399ff6a..759e838 100644
--- a/util/grub-mkimagexx.c
+++ b/util/grub-mkimagexx.c
@@ -865,8 +865,10 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr 
*sections,
                   {
                   case R_ARM_ABS32:
                     {
-                      grub_util_info ("  ABS32:\toffset=%d\t(0x%08x)",
-                                      (int) sym_addr, (int) sym_addr);
+                      grub_util_info ("  
ABS32:\ttarget=0x%08lx\toffset=(0x%08x)",
+                                      (unsigned long) ((char *) target
+                                                       - (char *) e),
+                                      sym_addr);
                       /* Data will be naturally aligned */
                       sym_addr += image_target->vaddr_offset;
                       *target = grub_host_to_target32 (grub_target_to_host32 
(*target) + sym_addr);
-- 
1.8.4.rc3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]