diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-02-28 16:45:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-02-28 16:45:36 -0800 |
| commit | ad69e021288d04f297c097985513306cbd304be3 (patch) | |
| tree | 37f94902315467601e4f7d05c8853e531ad29a93 /tools/objtool/check.c | |
| parent | 405a41d7599be266ae6880e73252ca41770760fe (diff) | |
| parent | b4ae43b053537ec28f430c0ddb9b916ab296dbe5 (diff) | |
| download | linux-ad69e021288d04f297c097985513306cbd304be3.tar.gz linux-ad69e021288d04f297c097985513306cbd304be3.tar.bz2 linux-ad69e021288d04f297c097985513306cbd304be3.zip | |
Merge tag 'objtool-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fixes from Ingo Molnar:
"Fix an objtool false positive, and objtool related build warnings that
happens on PIE-enabled architectures such as LoongArch"
* tag 'objtool-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
objtool: Add bch2_trans_unlocked_or_in_restart_error() to bcachefs noreturns
objtool: Fix C jump table annotations for Clang
vmlinux.lds: Ensure that const vars with relocations are mapped R/O
Diffstat (limited to 'tools/objtool/check.c')
| -rw-r--r-- | tools/objtool/check.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index be18a0489303..ce973d9d8e6d 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2472,13 +2472,14 @@ static void mark_rodata(struct objtool_file *file) * * - .rodata: can contain GCC switch tables * - .rodata.<func>: same, if -fdata-sections is being used - * - .rodata..c_jump_table: contains C annotated jump tables + * - .data.rel.ro.c_jump_table: contains C annotated jump tables * * .rodata.str1.* sections are ignored; they don't contain jump tables. */ for_each_sec(file, sec) { - if (!strncmp(sec->name, ".rodata", 7) && - !strstr(sec->name, ".str1.")) { + if ((!strncmp(sec->name, ".rodata", 7) && + !strstr(sec->name, ".str1.")) || + !strncmp(sec->name, ".data.rel.ro", 12)) { sec->rodata = true; found = true; } |
