This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/13022] probe module("*").function("*") does not work on arm


http://sourceware.org/bugzilla/show_bug.cgi?id=13022

--- Comment #4 from William Cohen <wcohen at redhat dot com> 2011-07-25 14:43:15 UTC ---
It looks like the ARM sections are violating the assumption in find_section
that the sections are non-overlapping regions of memory. This causes the binary
search to end up in the wrong section:

in find_section():

find_section should find the .text section. However that overlaps .rodata,
.bss, .data, and .note.gnu.build-id sections.  As result the converges to
sections 3 or 4 which do not contain the addr.

(gdb) print sections->count
$1 = 16
(gdb) print sections->refs[0]
$2 = {scn = 0xbc9108, relocs = 0xbc9190, name = 0x2e70886a ".text", 
  start = 36, end = 79072}
(gdb) print sections->refs[1]
$3 = {scn = 0xbc9438, relocs = 0xbc94c0, name = 0x2e708892 ".rodata", 
  start = 224, end = 3520}
(gdb) print sections->refs[2]
$4 = {scn = 0xbc9d40, relocs = 0x0, name = 0x2e708950 ".bss", start = 344, 
  end = 352}
(gdb) print sections->refs[3]
$5 = {scn = 0xbc9b20, relocs = 0xbc9ba8, name = 0x2e70892c ".data", 
  start = 1672, end = 1808}
(gdb) print sections->refs[4]
$6 = {scn = 0xbc9080, relocs = 0x0, name = 0x2e708853 ".note.gnu.build-id", 
  start = 65536, end = 65572}
(gdb) print sections->refs[5]
$7 = {scn = 0xbc9218, relocs = 0xbc92a0, name = 0x2e7088b3 ".exit.text", 
  start = 79072, end = 79120}
(gdb) print sections->refs[6]
$8 = {scn = 0xbc9328, relocs = 0xbc93b0, name = 0x2e7088e1 ".init.text", 
  start = 79120, end = 79344}
(gdb) print sections->refs[7]
$9 = {scn = 0xbc9548, relocs = 0x0, name = 0x2e70889a ".rodata.str1.1", 
  start = 79344, end = 89685}
(gdb) print sections->refs[8]
$10 = {scn = 0xbc95d0, relocs = 0x0, name = 0x2e7088a9 ".ARM.extab.exit.text", 
  start = 89688, end = 89700}
(gdb) print sections->refs[9]
$11 = {scn = 0xbc9658, relocs = 0xbc96e0, 
  name = 0x2e7088c2 ".ARM.exidx.exit.text", start = 89700, end = 89708}
(gdb) print sections->refs[10]
$12 = {scn = 0xbc9768, relocs = 0x0, name = 0x2e7088d7 ".ARM.extab.init.text", 
  start = 89708, end = 89732}
(gdb) print sections->refs[11]
$13 = {scn = 0xbc97f0, relocs = 0xbc9878, 
  name = 0x2e7088f0 ".ARM.exidx.init.text", start = 89732, end = 89748}
(gdb) print sections->refs[12]
$14 = {scn = 0xbc9900, relocs = 0x0, name = 0x2e708905 ".modinfo", 
  start = 89748, end = 89996}
(gdb) print sections->refs[13]
$15 = {scn = 0xbc9988, relocs = 0x0, name = 0x2e70890e ".ARM.extab", 
  start = 89996, end = 92516}
(gdb) print sections->refs[14]
$16 = {scn = 0xbc9a10, relocs = 0xbc9a98, name = 0x2e70891d ".ARM.exidx", 
  start = 92516, end = 94188}
(gdb) print sections->refs[15]
$17 = {scn = 0xbc9c30, relocs = 0xbc9cb8, 
  name = 0x2e708936 ".gnu.linkonce.this_module", start = 94188, end = 94532}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]