Commit d968e47
Arm backend: Add function to help linker force include backend (#16177)
### Summary
Add a function that serves as a linker force-include mechanism to
ensure the EthosU backend module gets properly linked into the final
executable, even when it might otherwise be optimized out by the
linker. This is needed when you use linker options that remove unused
code or data then this function can be called from your runner to
force the inclusion of the EthosU backend module.
This might be the case when build Executorch in other projects like
in ZephyrOS when you have an other set of compilers and linker flags.
### Test plan
Tested by invoking the project from ZephyrOS and check if the backend
get installed or not.
cc @freddan80 @per @oscarandersson8218 @digantdesai
Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>
Co-authored-by: Johan Alfven <Johan.Alfven@arm.com>1 parent b6935ad commit d968e47
1 file changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
545 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
546 | 570 | | |
547 | 571 | | |
548 | 572 | | |
| |||
0 commit comments