[Rpm-maint] [rpm-software-management/rpm] debugedit fails to update section headers (#423)
rguenth
notifications at github.com
Thu Mar 29 10:50:12 UTC 2018
debugedit -b /home/abuild/rpmbuild/BUILD/xtables-addons-3.0 -d /usr/src/debug/xtables-addons-3.0-0.x86_64 test.ko
results in
There are 41 section headers, starting at offset 0x870a8:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] et NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] ab NOTE 0000000000000000 00000040
0000000000000024 0000000000000000 A 0 0 4
[ 2] ela.text PROGBITS 0000000000000000 00000070
0000000000000340 0000000000000000 AX 0 0 16
...
the .shstrtab (40) starts with
Hex dump of section 'ab':
0x00000000 65740000 2e73796d 74616200 2e737472 et...symtab..str
0x00000010 74616200 2e736873 74727461 62002e6e tab..shstrtab..n
0x00000020 6f74652e 676e752e 6275696c 642d6964 ote.gnu.build-id
and suspiciously 37 (.rela.debug_frame) contains (look at the end!)
Hex dump of section 'ck':
0x00000000 455f4944 5f766572 6d616769 63313400 E_ID_vermagic14.
0x00000010 736b625f 636f7079 5f626974 73007874 skb_copy_bits.xt
0x00000020 5f726567 69737465 725f6d61 74636800 _register_match.
0x00000030 5f5f7468 69735f6d 6f64756c 6500736b __this_module.sk
0x00000040 625f6d61 6b655f77 72697461 626c6500 b_make_writable.
0x00000050 636c6561 6e75705f 6d6f6475 6c65005f cleanup_module._
0x00000060 5f66656e 7472795f 5f00696e 69745f6d _fentry__.init_m
0x00000070 6f64756c 65007874 5f756e72 65676973 odule.xt_unregis
0x00000080 7465725f 6d617463 68005f5f 73746163 ter_match.__stac
0x00000090 6b5f6368 6b5f6661 696c0078 745f7265 k_chk_fail.xt_re
0x000000a0 67697374 65725f74 61726765 74007874 gister_target.xt
0x000000b0 5f756e72 65676973 7465725f 74617267 _unregister_targ
so the real .shstrtab should start at 00086f1c instead of 00086f18.
So there's a off-by-4 error somewhere...
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/423
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180329/53d4332f/attachment.html>
More information about the Rpm-maint
mailing list