{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esptool/issues/144","repository_url":"https://api.github.com/repos/espressif/esptool","labels_url":"https://api.github.com/repos/espressif/esptool/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esptool/issues/144/comments","events_url":"https://api.github.com/repos/espressif/esptool/issues/144/events","html_url":"https://github.com/espressif/esptool/issues/144","id":188625539,"number":144,"title":"File generated by elf2image is invalid under specific circumstances","user":{"login":"shodan8192","id":23244044,"avatar_url":"https://avatars.githubusercontent.com/u/23244044?v=3","gravatar_id":"","url":"https://api.github.com/users/shodan8192","html_url":"https://github.com/shodan8192","followers_url":"https://api.github.com/users/shodan8192/followers","following_url":"https://api.github.com/users/shodan8192/following{/other_user}","gists_url":"https://api.github.com/users/shodan8192/gists{/gist_id}","starred_url":"https://api.github.com/users/shodan8192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shodan8192/subscriptions","organizations_url":"https://api.github.com/users/shodan8192/orgs","repos_url":"https://api.github.com/users/shodan8192/repos","events_url":"https://api.github.com/users/shodan8192/events{/privacy}","received_events_url":"https://api.github.com/users/shodan8192/received_events","type":"User","site_admin":false},"labels":[{"id":479312892,"url":"https://api.github.com/repos/espressif/esptool/labels/esp32","name":"esp32","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-10T21:39:51Z","updated_at":"2016-11-10T23:35:08Z","closed_at":"2016-11-10T23:03:12Z","body":"\r\n[examples.zip](https://github.com/espressif/esptool/files/584516/examples.zip)\r\nHello,\r\n\r\nI'm integrating ESP-IDF into PlatformIO, and found problem with image generated by esptool.\r\n\r\nIn default, script in PlatformIO generate library files named in such pattern :\r\n\r\n`libIDFComponents_freertos.a`\r\n\r\nthen, to linking stage, library is passed by path and fullname :\r\n`.pioenvs\\nano32\\libIDFComponents_freertos.a`\r\n\r\ngcc manual say, that it's ok to do that :\r\n> The only difference between using an -l option and specifying a file name is that -l surrounds library with ‘lib’ and ‘.a’ and searches several directories.\r\n\r\nbut flash image generated from elf, that was built that way is invalid - application stuck at random point, dependent of program content.\r\n\r\nIf I change the script, so library file name become :\r\n`libfreertos.a`\r\nand to linker is passed : \r\n`.pioenvs\\nano32\\libfreertos.a`\r\nthen it's all right - program working properly, regardless of it's content.\r\n\r\nIn both cases elf file has the same size, but invalid image is slighty larger than valid.\r\nPlease see attached zip file, which contain two directories with firmware.bin and firmware.elf respectively for both cases.\r\n\r\nBest regards\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esptool/issues/comments/259839786","html_url":"https://github.com/espressif/esptool/issues/144#issuecomment-259839786","issue_url":"https://api.github.com/repos/espressif/esptool/issues/144","id":259839786,"user":{"login":"shodan8192","id":23244044,"avatar_url":"https://avatars.githubusercontent.com/u/23244044?v=3","gravatar_id":"","url":"https://api.github.com/users/shodan8192","html_url":"https://github.com/shodan8192","followers_url":"https://api.github.com/users/shodan8192/followers","following_url":"https://api.github.com/users/shodan8192/following{/other_user}","gists_url":"https://api.github.com/users/shodan8192/gists{/gist_id}","starred_url":"https://api.github.com/users/shodan8192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shodan8192/subscriptions","organizations_url":"https://api.github.com/users/shodan8192/orgs","repos_url":"https://api.github.com/users/shodan8192/repos","events_url":"https://api.github.com/users/shodan8192/events{/privacy}","received_events_url":"https://api.github.com/users/shodan8192/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T23:35:08Z","updated_at":"2016-11-10T23:35:08Z","body":"Thank you - this is a explanation which I needed - I saw those mappings before, but I completely forgot about them."}}
{"actor":{"display_login":"shodan8192"}}