tc: create helper to access toolchain tools

This commit is contained in:
Ciro Santilli
2018-04-19 08:01:01 +01:00
parent 3fdabbda61
commit 9805d333ea
9 changed files with 35 additions and 13 deletions

View File

@@ -924,8 +924,7 @@ so it is close to the failing `0xbf0000cc`.
`readelf`:
....
./out/x86_64/buildroot/host/usr/bin/x86_64-buildroot-linux-uclibc-readelf \
-s ./out/x86_64/buildroot/build/kernel_module-1.0/hello.ko
./runtc readelf -s ./out/x86_64/buildroot/build/kernel_module-1.0/hello.ko
....
does not give any interesting hits at `cc`, no symbol was placed that far.
@@ -998,7 +997,7 @@ The base address shows on terminal:
Now let's find the offset of `myinit`:
....
./out/x86_64/buildroot/host/usr/bin/x86_64-buildroot-linux-uclibc-readelf \
./runtc readelf \
-s ./out/x86_64/buildroot/build/kernel_module-1.0/fops.ko | \
grep myinit
....
@@ -1295,7 +1294,7 @@ Cannot access memory at address 0x10604
We have also double checked the address with:
....
./out/arm/buildroot/host/bin/arm-buildroot-linux-uclibcgnueabi-readelf-s \
./runtc -a arm readelf \
./out/arm/buildroot/build/kernel_module-1.0/user/hello.out | \
grep main
....
@@ -2737,7 +2736,7 @@ Notes:
It can be found from:
+
....
readelf -e out/x86_64/buildroot/build/linux-*/vmlinux | grep Entry
./runtc readelf -e out/x86_64/buildroot/build/linux-*/vmlinux | grep Entry
....
+
TODO confirm further. If I try to break there with: