OSDN Git Service

ldso: ARC: tweak whitespace some more
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Dec 2013 15:24:12 +0000 (16:24 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Dec 2013 15:27:43 +0000 (16:27 +0100)
Use spaces instead of tabs in the table to accomodate different tab
settings.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
ldso/ldso/arc/dl-sysdep.h
ldso/ldso/arc/elfinterp.c

index 6e2e47c..97ce284 100644 (file)
 /*
  * Dynamic Linking ABI for ARCompact ISA
  *
- *                   PLT
- *     --------------------------------
- *     |  ld r11, [pcl, off-to-GOT[1]  |  0   (20 bytes)
- *                                   |  4
- * plt0        |  ld r10, [pcl, off-to-GOT[2]  |  8
- *                                   | 12
- *     |  j [r10]                      | 16
- *     --------------------------------
- *     |    Base address of GOT        | 20
- *     --------------------------------
- *     |  ld r12, [pcl, off-to-GOT[3]  | 24   (12 bytes each)
- * plt1 |                              |
- *     |  j_s.d  [r12]                 | 32
- *     |  mov_s  r12, pcl              | 34
- *     --------------------------------
- *                                   | 36
- *                                   ~
- *                                   ~
- *                                   |
- *     --------------------------------
+ *                      PLT
+ *        --------------------------------
+ *        |  ld r11, [pcl, off-to-GOT[1] |  0   (20 bytes)
+ *        |                              |  4
+ * plt0   |  ld r10, [pcl, off-to-GOT[2] |  8
+ *        |                              | 12
+ *        |  j [r10]                     | 16
+ *        --------------------------------
+ *        |    Base address of GOT       | 20
+ *        --------------------------------
+ *        |  ld r12, [pcl, off-to-GOT[3] | 24   (12 bytes each)
+ * plt1   |                              |
+ *        |  j_s.d  [r12]                | 32
+ *        |  mov_s  r12, pcl             | 34
+ *        --------------------------------
+ *        |                              | 36
+ *        ~                              ~
+ *        ~                              ~
+ *        |                              |
+ *        --------------------------------
  *
- *          GOT
- *     --------------
- *     |    [0]      |
- *     --------------
- *     |    [1]      |  Module info - setup by ldso
- *     --------------
- *     |    [2]      |  resolver entry point
- *     --------------
- *     |    [3]      |
- *     |    ...      |  Runtime address for function symbols
- *     |    [f]      |
- *     --------------
- *     |    [f+1]    |
- *     |    ...      |  Runtime address for data symbols
- *     |    [last]   |
- *     --------------
+ *             GOT
+ *        --------------
+ *        |    [0]     |
+ *        --------------
+ *        |    [1]     |  Module info - setup by ldso
+ *        --------------
+ *        |    [2]     |  resolver entry point
+ *        --------------
+ *        |    [3]     |
+ *        |    ...     |  Runtime address for function symbols
+ *        |    [f]     |
+ *        --------------
+ *        |    [f+1]   |
+ *        |    ...     |  Runtime address for data symbols
+ *        |    [last]  |
+ *        --------------
  */
 
 /*
index 1d4481c..ca0d2c1 100644 (file)
@@ -59,7 +59,7 @@ _dl_linux_resolver(struct elf_resolve *tpnt, unsigned int plt_pc)
 #if defined __SUPPORT_LD_DEBUG__
        if (_dl_debug_bindings) {
                _dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
-               if(_dl_debug_detail)
+               if (_dl_debug_detail)
                        _dl_dprintf(_dl_debug_file, "\n\tpatched %x ==> %pc @ %pl\n",
                                        *got_addr, new_addr, got_addr);
        }
@@ -182,7 +182,7 @@ _dl_do_lazy_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
        }
 
 #if defined __SUPPORT_LD_DEBUG__
-       if(_dl_debug_reloc && _dl_debug_detail)
+       if (_dl_debug_reloc && _dl_debug_detail)
                _dl_dprintf(_dl_debug_file, "\tpatched: %lx ==> %lx @ %pl\n",
                                old_val, *reloc_addr, reloc_addr);
 #endif