-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ESP32 compiled binary shows absolute file path when walked through using binwalk #3539
Comments
Can you please try enabling following config options:
Please see previous discussion on this topic at espressif/esp-idf#6306 and espressif/esp-idf#5873 |
Hi @vineet288818 The amazon-freertos logging stack, for this release, should already be removing full paths from logs and only displaying the filename. Please review Mahavir's suggestion for the esp-idf portion. Additionally, you can edit the amazon-freertos logging output in
|
We are evaluating the binary generated for ESP32. ESP32 sdkconfig changes as suggested by @mahavirj FreeRTOS changes as suggested by @dachalco //#ifdef _MSC_VER With these changes do we need to make any other configuration? Here are the logs of binwalk output: |
Hey, @EI-viren-moradiya thanks for bringing this issue up. I was wondering if you could possibly supply your build command, the version of binwalk you're using, and then the binwalk command you are using to see this output. I believe this information would help myself and others in assisting you with this problem. |
Hi @Skptak, Below is the build command which I am using to generate the firmware binary. Generate Build filescmake -S ../ -B ../code/build -DIDF_SDKCONFIG_DEFAULTS=../code/config/sdkconfig -DCMAKE_TOOLCHAIN_FILE=../code/freertos/tools/cmake/toolchains/xtensa-esp32.cmake Build the projectmake all Binwalk version Command to see the output: Let us know if you need any other details to understand the problem. Thank you! |
The linked IDF issues make some mention of it, but the config doesn't cover all uses of Could you do a diff of the binwalk output before and after setting those sdkconfigs? I'm noticing that there are still issues with various other stack's assertions that still use |
We are evaluating the binary generated for ESP32.
The binary when run through binwalk shows absolute file paths for the files.
ENVIRONMENT : AFR version : 202012
**Here is a sample of the file paths seen
264372 0x408B4 Unix path: /home/ubuntu/ic/code/freertos/freertos_kernel/stream_buffer.c
266912 0x412A0 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/soc/esp32/rtc_time.c
268392 0x41868 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/soc/src/memory_layout_utils.c
268844 0x41A2C Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/vfs/vfs.c
270360 0x42018 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/efuse/src/esp_efuse_utility.c
271032 0x422B8 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/app_update/esp_ota_ops.c
272144 0x42710 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/spi_flash/flash_mmap.c
272420 0x42824 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/spi_flash/partition.c
278932 0x44194 Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/lwip/lwip/src/core/tcp_in.c
279948 0x4458C Unix path: /home/ubuntu/ic/code/freertos/vendors/espressif/esp-idf/components/lwip/lwip/src/core/tcp_out.c**
How can we turn off inclusion of absolute file paths in the binary.
The text was updated successfully, but these errors were encountered: