rustwasm/twiggy

Option to specify roots of program

smmoosavi opened this issue · 0 comments

💡 Feature Description

I try to use Twiggy for the embedded binary for the thumbv6m-none-eabi target. As I know, these sections can be the starting point of the program (no_mangle and interrupt sections): __stext, SysTick, EXTI4_15, TIM2

When I run twiggy garbage all sections are marked as garbage. Please add an option (e.g., --roots) to specify the starting points of the program.

💻 Example Usage

twiggy garbage --roots __stext SysTick EXTI4_15 TIM2

🙌 Are you interested in implementing this feature?

  • Yes
  • Yes if I had a mentor to help me
  • No