{"action":"opened","issue":{"url":"https://api.github.com/repos/espressif/esp-gdbstub/issues/2","labels_url":"https://api.github.com/repos/espressif/esp-gdbstub/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-gdbstub/issues/2/comments","events_url":"https://api.github.com/repos/espressif/esp-gdbstub/issues/2/events","html_url":"https://github.com/espressif/esp-gdbstub/issues/2","id":118276822,"number":2,"title":"gdbstub linking will not fit in iram1_0_seg","user":{"login":"nkolban","id":3421732,"avatar_url":"https://avatars.githubusercontent.com/u/3421732?v=3","gravatar_id":"","url":"https://api.github.com/users/nkolban","html_url":"https://github.com/nkolban","followers_url":"https://api.github.com/users/nkolban/followers","following_url":"https://api.github.com/users/nkolban/following{/other_user}","gists_url":"https://api.github.com/users/nkolban/gists{/gist_id}","starred_url":"https://api.github.com/users/nkolban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkolban/subscriptions","organizations_url":"https://api.github.com/users/nkolban/orgs","repos_url":"https://api.github.com/users/nkolban/repos","events_url":"https://api.github.com/users/nkolban/events{/privacy}","received_events_url":"https://api.github.com/users/nkolban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-22T17:40:53Z","updated_at":"2015-11-22T17:40:53Z","closed_at":null,"body":"I have downloaded the esp-gdbstub repository, compiled the sources and placed them in an archive. When I now try and link the gdbstub archive with me simple C application, I find that I get the error:\r\n\r\n    a.out section '.text' will not fit in region 'iram1_0_seg'\r\n\r\nRunning `objdump -h` over the archive produces the following:\r\n\r\n```\r\ngdbstub.o:     file format elf32-xtensa-le\r\n\r\nSections:\r\nIdx Name          Size      VMA       LMA       File off  Algn\r\n  0 .literal      00000000  00000000  00000000  00000034  2**2\r\n                  CONTENTS, ALLOC, LOAD, READONLY, CODE\r\n  1 .irom0.literal 00000000  00000000  00000000  00000034  2**2\r\n                  CONTENTS, ALLOC, LOAD, READONLY, CODE\r\n  2 .text         00001133  00000000  00000000  00000034  2**2\r\n                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE\r\n  3 .data         00000008  00000000  00000000  00001168  2**2\r\n                  CONTENTS, ALLOC, LOAD, DATA\r\n  4 .bss          00000128  00000000  00000000  00001170  2**2\r\n                  ALLOC\r\n  5 .rodata       000000aa  00000000  00000000  00001170  2**2\r\n                  CONTENTS, ALLOC, LOAD, READONLY, DATA\r\n  6 .irom0.text   000000c2  00000000  00000000  0000121c  2**2\r\n                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE\r\n  7 .comment      00000022  00000000  00000000  000012de  2**0\r\n                  CONTENTS, READONLY\r\n  8 .xtensa.info  00000038  00000000  00000000  00001300  2**0\r\n                  CONTENTS, READONLY\r\n  9 .xt.lit       000000b8  00000000  00000000  00001338  2**0\r\n                  CONTENTS, RELOC, READONLY\r\n 10 .xt.prop      00000be8  00000000  00000000  000013f0  2**0\r\n                  CONTENTS, RELOC, READONLY\r\n\r\ngdbstub-entry.o:     file format elf32-xtensa-le\r\n\r\nSections:\r\nIdx Name          Size      VMA       LMA       File off  Algn\r\n  0 .literal      00000000  00000000  00000000  00000034  2**2\r\n                  CONTENTS, ALLOC, LOAD, READONLY, CODE\r\n  1 .text         0000023f  00000000  00000000  00000034  2**2\r\n                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE\r\n  2 .data         00000000  00000000  00000000  00000273  2**0\r\n                  CONTENTS, ALLOC, LOAD, DATA\r\n  3 .bss          00000000  00000000  00000000  00000273  2**0\r\n                  ALLOC\r\n  4 .xtensa.info  00000038  00000000  00000000  00000273  2**0\r\n                  CONTENTS, READONLY\r\n  5 .xt.lit       00000008  00000000  00000000  000002ab  2**0\r\n                  CONTENTS, RELOC, READONLY\r\n  6 .xt.prop      00000144  00000000  00000000  000002b3  2**0\r\n                  CONTENTS, RELOC, READONLY\r\n```\r\n\r\nHas anyone run up against this puzzle before?\r\n\r\nAlso posted to the forum here:\r\n\r\nhttp://bbs.espressif.com/viewtopic.php?f=7&t=1424"}}