]> Git Repo - J-linux.git/commitdiff
objtool: Exclude __tracepoints data from ENDBR checks
authorPeter Zijlstra <[email protected]>
Fri, 8 Nov 2024 09:32:02 +0000 (10:32 +0100)
committerPeter Zijlstra <[email protected]>
Mon, 11 Nov 2024 10:49:42 +0000 (11:49 +0100)
For some, as of yet unexplained reason, Clang-19, but not GCC,
generates and endless stream of:

drivers/iio/imu/bno055/bno055_ser.o: warning: objtool: __tracepoint_send_chunk+0x20: data relocation to !ENDBR: __SCT__tp_func_send_chunk+0x0
drivers/iio/imu/bno055/bno055_ser.o: warning: objtool: __tracepoint_cmd_retry+0x20: data relocation to !ENDBR: __SCT__tp_func_cmd_retry+0x0
drivers/iio/imu/bno055/bno055_ser.o: warning: objtool: __tracepoint_write_reg+0x20: data relocation to !ENDBR: __SCT__tp_func_write_reg+0x0
drivers/iio/imu/bno055/bno055_ser.o: warning: objtool: __tracepoint_read_reg+0x20: data relocation to !ENDBR: __SCT__tp_func_read_reg+0x0
drivers/iio/imu/bno055/bno055_ser.o: warning: objtool: __tracepoint_recv+0x20: data relocation to !ENDBR: __SCT__tp_func_recv+0x0

Which is entirely correct, but harmless. Add the __tracepoints section
to the exclusion list.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
tools/objtool/check.c

index 7fc96c30b79cf5f88cdd12709d27c86fd6b239b3..f7586f82b967ad6db1f607a594f72e459ee915aa 100644 (file)
@@ -4573,6 +4573,7 @@ static int validate_ibt(struct objtool_file *file)
                    !strcmp(sec->name, "__jump_table")                  ||
                    !strcmp(sec->name, "__mcount_loc")                  ||
                    !strcmp(sec->name, ".kcfi_traps")                   ||
+                   !strcmp(sec->name, "__tracepoints")                 ||
                    strstr(sec->name, "__patchable_function_entries"))
                        continue;
 
This page took 0.05603 seconds and 4 git commands to generate.