On Mon, Apr 4, 2016, at 23:52, [email protected] wrote: > I am trying to build Busybox for my ARMv7-M microprocessor based > board. It seems to compile everything as configured; however, the > resulting binary is only 340 bytes in size. The map file shows all > files that were built, but there is no space allocated for them. It's > as if it has decided to discard all sections as unused. I've tried for > a while now to figure out why it might be doing this. I am using > Buildroot to automate the entire process. Can anyone provide any > guidance on how to go about fixing this? What other information should > I provide?
I hit similar on m68k a while back - the platform's link scripts were not prepared for gc-sections, and so everything got pruned. Since editing your platform may not be an option for you, the easiest workaround is to remove gc-sections from scripts/trylink. Specifically, look for the logic that checks for it, and empties the variable - make it always empty. - Lauri -- http://www.fastmail.com - Or how I learned to stop worrying and love email again _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
