79704666

Date: 2025-07-17 10:42:35
Score: 1
Natty:
Report link

If I just want to replace all refrences to IRQHandler globally, I can use defsym .

I.e. compile with

gcc main.c lib.c lib2.c -Wl,--defsym=IRQHandler=__wrap_IRQHandler -o prog

And then both IRQHandler and g_IRQHANDLER point to __wrap_IRQHandler

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SamBob