]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: module: print pretty section names
authorVineet Gupta <vgupta@synopsys.com>
Tue, 25 Oct 2016 18:23:19 +0000 (11:23 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 28 Oct 2016 17:10:29 +0000 (10:10 -0700)
commit114a01627c8dfa7b494c1413c35500eeec441713
treeea93f43853fb22b32e60ff745a88a963b7f29ac3
parent36dc448e0e7567cd974d9b976442ba47ed154162
ARC: module: print pretty section names

Now that we have referece to section name string table in
apply_relocate_add(), use it to

 - print the name of section being relocated
 - print symbol with NULL name (since it refers to a section)

before

| Section to fixup 7000a060
| =========================================================
| rela->r_off | rela->addend | sym->st_value | ADDR | VALUE
| =========================================================
| 1c 0 7000e000  7000a07c 7000e000 []
| 40 0 7000a000  7000a0a0 7000a000 []

after

| Section to fixup .eh_frame @7000a060
| =========================================================
| r_off r_add st_value ADDRESS  VALUE
| =========================================================
|    1c 0 7000e000 7000a07c 7000e000 [.init.text]
|    40 0 7000a000 7000a0a0 7000a000 [.exit.text]

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/module.c