From 1b50fec4963cc99465d153c3c4e8bb669e12de57 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Thu, 2 Jul 2020 20:48:43 -0700 Subject: outlib: fix infinite recursion due to incorrect wrapping recursion: see recursion. A wrapper function needs to call the function being wrapped, not itself. Signed-off-by: H. Peter Anvin (Intel) --- output/outlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outlib.h b/output/outlib.h index a0b31245..7f6a7893 100644 --- a/output/outlib.h +++ b/output/outlib.h @@ -254,7 +254,7 @@ static inline uint64_t ol_nsects(void) extern int32_t _ol_new_subsection(struct ol_sect *sect); static inline int32_t ol_new_subsection(O_Section *sect) { - return ol_new_subsection((struct ol_sect *)sect); + return _ol_new_subsection((struct ol_sect *)sect); } /* -- cgit v1.2.1