diff options
Diffstat (limited to 'libgloss/rl78/crt0.S')
-rw-r--r-- | libgloss/rl78/crt0.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgloss/rl78/crt0.S b/libgloss/rl78/crt0.S index d5c078df0..d5a07df90 100644 --- a/libgloss/rl78/crt0.S +++ b/libgloss/rl78/crt0.S @@ -34,7 +34,11 @@ .short _start .section ".ivec","a" -#define IV(x) .weak _##x##_handler | .short _##x##_handler + .macro _iv x + .weak \x + .short \x + .endm +#define IV(x) _iv _##x##_handler #define IVx() .short 0 /* To use a vector, simply define a global function named foo_handler() |