Skip to content

Commit 3df1426

Browse files
chleroyctmarinas
authored andcommitted
recordmcount: Fix build failure on non arm64
Commit ea0eada leads to the following build failure on powerpc: HOSTCC scripts/recordmcount scripts/recordmcount.c: In function 'arm64_is_fake_mcount': scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function) scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once scripts/recordmcount.c:440: error: for each function it appears in.) make[2]: *** [scripts/recordmcount] Error 1 Make sure R_AARCH64_CALL26 is always defined. Fixes: ea0eada ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.") Signed-off-by: Christophe Leroy <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]> Acked-by: Gregory Herrero <[email protected]> Cc: Gregory Herrero <[email protected]> Link: https://lore.kernel.org/r/5ca1be21fa6ebf73203b45fd9aadd2bafb5e6b15.1597049145.git.christophe.leroy@csgroup.eu Signed-off-by: Catalin Marinas <[email protected]>
1 parent eaecca9 commit 3df1426

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/recordmcount.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
#define R_ARM_THM_CALL 10
4343
#define R_ARM_CALL 28
4444

45+
#define R_AARCH64_CALL26 283
46+
4547
static int fd_map; /* File descriptor for file being modified. */
4648
static int mmap_failed; /* Boolean flag. */
4749
static char gpfx; /* prefix for global symbol name (sometimes '_') */

0 commit comments

Comments
 (0)