From 493424721011bbb0c292f106266bd2ce330ac78c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 21 May 2021 15:42:38 +0200 Subject: stackm: add stm32f446re support --- script/static-stack-analyze.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/static-stack-analyze.pl b/script/static-stack-analyze.pl index 003be15..ed83726 100755 --- a/script/static-stack-analyze.pl +++ b/script/static-stack-analyze.pl @@ -36,17 +36,23 @@ my %arch_data = ( call_relocation => 'R_AVR_CALL', }, msp430 => { - # For each function call, the 4-Byte (20 bits at 2-Byte alignment) return + # For each function call, the 2-Byte (16 bits at 2-Byte alignment) return # address is pushed onto the stack. - call_cost => 4, + call_cost => 2, call_relocation => 'R_MSP430X_ABS16', }, msp430large => { - # For each function call, the 4-Byte (20 bits at 2-Byte alignment) return + # For each function call, the 4-Byte (20 bits at 4-Byte alignment) return # address is pushed onto the stack. call_cost => 4, call_relocation => 'R_MSP430X_ABS20_ADR_DST', }, + stm32f4 => { + # For each function call, the 4-Byte (32 bits) return + # address is pushed onto the stack. + call_cost => 4, + call_relocation => 'R_ARM_THM_CALL', + }, ); my %addresses; -- cgit v1.2.3