已开启
backport ELF: fix all "Elf" typos #222
zhangwenyi0929创建于 6月26日
backport ELF: fix all "Elf" typos #222
已开启
共 2 个文件变更+53-1
| @@ -0,0 +1,48 @@ | |||
| 1 | +From 4c484d662c8f8bb212659feef5d3742f42812a31 Mon Sep 17 00:00:00 2001 | ||
| 2 | +From: Alexey Dobriyan <adobriyan@gmail.com> | ||
| 3 | +Date: Tue, 28 Feb 2023 15:14:17 +0300 | ||
| 4 | +Subject: [PATCH] ELF: fix all "Elf" typos | ||
| 5 | +MIME-Version: 1.0 | ||
| 6 | +Content-Type: text/plain; charset=UTF-8 | ||
| 7 | +Content-Transfer-Encoding: 8bit | ||
| 8 | + | ||
| 9 | +ELF is acronym and therefore should be spelled in all caps. | ||
| 10 | + | ||
| 11 | +I left one exception at Documentation/arm/nwfpe/nwfpe.rst which looks like | ||
| 12 | +being written in the first person. | ||
| 13 | + | ||
| 14 | +Link: https://lkml.kernel.org/r/Y/3wGWQviIOkyLJW@p183 | ||
| 15 | +Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> | ||
| 16 | +Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | ||
| 17 | +Signed-off-by: Daniel Müller <deso@posteo.net> | ||
| 18 | +--- | ||
| 19 | + src/libbpf.c | 2 +- | ||
| 20 | + src/usdt.c | 2 +- | ||
| 21 | + 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 22 | + | ||
| 23 | +diff --git a/src/libbpf.c b/src/libbpf.c | ||
| 24 | +index 1cbacf9e7..ad1ec893b 100644 | ||
| 25 | +--- a/src/libbpf.c | ||
| 26 | ++++ b/src/libbpf.c | ||
| 27 | +@@ -1361,7 +1361,7 @@ static int bpf_object__elf_init(struct bpf_object *obj) | ||
| 28 | + goto errout; | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | +- /* Elf is corrupted/truncated, avoid calling elf_strptr. */ | ||
| 32 | ++ /* ELF is corrupted/truncated, avoid calling elf_strptr. */ | ||
| 33 | + if (!elf_rawdata(elf_getscn(elf, obj->efile.shstrndx), NULL)) { | ||
| 34 | + pr_warn("elf: failed to get section names strings from %s: %s\n", | ||
| 35 | + obj->path, elf_errmsg(-1)); | ||
| 36 | +diff --git a/src/usdt.c b/src/usdt.c | ||
| 37 | +index b8402e3f9..086eef355 100644 | ||
| 38 | +--- a/src/usdt.c | ||
| 39 | ++++ b/src/usdt.c | ||
| 40 | +@@ -771,7 +771,7 @@ static int collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char * | ||
| 41 | + target->rel_ip = usdt_rel_ip; | ||
| 42 | + target->sema_off = usdt_sema_off; | ||
| 43 | + | ||
| 44 | +- /* notes.args references strings from Elf itself, so they can | ||
| 45 | ++ /* notes.args references strings from ELF itself, so they can | ||
| 46 | + * be referenced safely until elf_end() call | ||
| 47 | + */ | ||
| 48 | + target->spec_str = note.args; | ||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | Name: %{githubname} | 5 | Name: %{githubname} |
| 6 | Version: %{githubver} | 6 | Version: %{githubver} |
| 7 | -Release: 13 | 7 | +Release: 15 |
| 8 | Summary: Libbpf library | 8 | Summary: Libbpf library |
| 9 | 9 | ||
| 10 | License: LGPLv2 or BSD | 10 | License: LGPLv2 or BSD |
| @@ -36,6 +36,7 @@ Patch0019: backport-libbpf-Fix-hypothetical-STT_SECTION-extern-NULL-deref-c | |||
| 36 | Patch0020: backport-libbpf-Adaption-for-sched-type-eBPF-program.patch | 36 | Patch0020: backport-libbpf-Adaption-for-sched-type-eBPF-program.patch |
| 37 | Patch0021: backport-libbpf-Fix-buffer-overflow-in-bpf_object__init_prog.patch | 37 | Patch0021: backport-libbpf-Fix-buffer-overflow-in-bpf_object__init_prog.patch |
| 38 | Patch0022: backport-libbpf-Fix-comment-about-arc-and-riscv-arch-in-bpf_tracing.h.patch | 38 | Patch0022: backport-libbpf-Fix-comment-about-arc-and-riscv-arch-in-bpf_tracing.h.patch |
| 39 | +Patch0024: backport-ELF-fix-all-Elf-typos.patch | ||
| 39 | 40 | ||
| 40 | # This package supersedes libbpf from kernel-tools, | 41 | # This package supersedes libbpf from kernel-tools, |
| 41 | # which has default Epoch: 0. By having Epoch: 1 | 42 | # which has default Epoch: 0. By having Epoch: 1 |
| @@ -88,6 +89,9 @@ developing applications that use %{name} | |||
| 88 | %{_libdir}/libbpf.a | 89 | %{_libdir}/libbpf.a |
| 89 | 90 | ||
| 90 | %changelog | 91 | %changelog |
| 92 | +* Fri Jun 26 2026 zhangwenyi <zhangwenyi@xfusion.com> 2:1.2.2-15 | ||
| 93 | +- ELF: fix all "Elf" typos | ||
| 94 | + | ||
| 91 | * Wed Jun 03 2026 gaoyongtao <gaoyongtao1@xfusion.com> 2:1.2.2-13 | 95 | * Wed Jun 03 2026 gaoyongtao <gaoyongtao1@xfusion.com> 2:1.2.2-13 |
| 92 | - libbpf: Fix comment about arc and riscv arch in bpf_tracing.h | 96 | - libbpf: Fix comment about arc and riscv arch in bpf_tracing.h |
| 93 | 97 | ||