Skip to content

Commit d5ae766

Browse files
committed
objtool: Exclude __tracepoints data from ENDBR checks
JIRA: https://issues.redhat.com/browse/RHEL-80715 commit d5173f7 Author: Peter Zijlstra <peterz@infradead.org> Date: Fri, 8 Nov 2024 10:32:02 +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) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20241108184618.GG38786@noisy.programming.kicks-ass.net [Radomir Vrbovsky <rvrbovsk@redhat.com>: Manually updated due to context mismatch] Signed-off-by: Radomir Vrbovsky <rvrbovsk@redhat.com>
1 parent 405aa0f commit d5ae766

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/objtool/check.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,6 +4575,7 @@ static int validate_ibt(struct objtool_file *file)
45754575
!strcmp(sec->name, ".kcfi_traps") ||
45764576
!strcmp(sec->name, ".llvm.call-graph-profile") ||
45774577
!strcmp(sec->name, ".llvm_bb_addr_map") ||
4578+
!strcmp(sec->name, "__tracepoints") ||
45784579
strstr(sec->name, "__patchable_function_entries"))
45794580
continue;
45804581

0 commit comments

Comments
 (0)