ELF: fix all "Elf" typos
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 28 Feb 2023 12:14:17 +0000 (15:14 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 8 Apr 2023 20:45:37 +0000 (13:45 -0700)
ELF is acronym and therefore should be spelled in all caps.

I left one exception at Documentation/arm/nwfpe/nwfpe.rst which looks like
being written in the first person.

Link: https://lkml.kernel.org/r/Y/3wGWQviIOkyLJW@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
14 files changed:
arch/mips/boot/tools/relocs.c
arch/um/os-Linux/elf_aux.c
arch/x86/tools/relocs.c
drivers/remoteproc/remoteproc_coredump.c
drivers/remoteproc/remoteproc_elf_loader.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/proc/vmcore.c
lib/buildid.c
sound/soc/codecs/rt5677.c
tools/bpf/resolve_btfids/main.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/usdt.c
tools/perf/util/symbol-elf.c

index 02fc85f3e8ffe60f95c9ff15db2bdfe3136b8b9c..a88d66c46d7f7882b6e5986f037cac972d00d436 100644 (file)
@@ -245,7 +245,7 @@ static void read_ehdr(FILE *fp)
                die("Unknown ELF version\n");
 
        if (ehdr.e_ehsize != sizeof(Elf_Ehdr))
-               die("Bad Elf header size\n");
+               die("Bad ELF header size\n");
 
        if (ehdr.e_phentsize != sizeof(Elf_Phdr))
                die("Bad program header entry\n");
index 77a9321379b7853a587c2c611da516e8be8ac9a9..344ac403fb5da2a39c5cdb4808e0ead45afcdd2e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  *  arch/um/kernel/elf_aux.c
  *
- *  Scan the Elf auxiliary vector provided by the host to extract
+ *  Scan the ELF auxiliary vector provided by the host to extract
  *  information about vsyscall-page, etc.
  *
  *  Copyright (C) 2004 Fujitsu Siemens Computers GmbH
index 2925074b9a588dec46961384bbd9668e013ce43b..d30949e25ebd9b0c36accd642d64059fadd07eb9 100644 (file)
@@ -406,7 +406,7 @@ static void read_ehdr(FILE *fp)
        if (ehdr.e_version != EV_CURRENT)
                die("Unknown ELF version\n");
        if (ehdr.e_ehsize != sizeof(Elf_Ehdr))
-               die("Bad Elf header size\n");
+               die("Bad ELF header size\n");
        if (ehdr.e_phentsize != sizeof(Elf_Phdr))
                die("Bad program header entry\n");
        if (ehdr.e_shentsize != sizeof(Elf_Shdr))
index 4b093420d98aa9544e1420d48b5142036e0537f3..bc0e1603a7a3f232143fbb1f3a042582dda42649 100644 (file)
@@ -249,7 +249,7 @@ void rproc_coredump(struct rproc *rproc)
                return;
 
        if (class == ELFCLASSNONE) {
-               dev_err(&rproc->dev, "Elf class is not set\n");
+               dev_err(&rproc->dev, "ELF class is not set\n");
                return;
        }
 
@@ -361,7 +361,7 @@ void rproc_coredump_using_sections(struct rproc *rproc)
                return;
 
        if (class == ELFCLASSNONE) {
-               dev_err(&rproc->dev, "Elf class is not set\n");
+               dev_err(&rproc->dev, "ELF class is not set\n");
                return;
        }
 
index 5a412d7b6e0be2296728022e2324343a70d5b1f1..94177e4160473c29bb406480fc134467452c0537 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Remote Processor Framework Elf loader
+ * Remote Processor Framework ELF loader
  *
  * Copyright (C) 2011 Texas Instruments, Inc.
  * Copyright (C) 2011 Google, Inc.
@@ -39,7 +39,7 @@ int rproc_elf_sanity_check(struct rproc *rproc, const struct firmware *fw)
        const char *name = rproc->firmware;
        struct device *dev = &rproc->dev;
        /*
-        * Elf files are beginning with the same structure. Thus, to simplify
+        * ELF files are beginning with the same structure. Thus, to simplify
         * header parsing, we can use the elf32_hdr one for both elf64 and
         * elf32.
         */
index 8a884e795f6a7b63756dfd31c13f7154c66e6462..a5b054fdb331f533f052024afd138911f1d3c625 100644 (file)
@@ -2058,7 +2058,7 @@ static int elf_core_dump(struct coredump_params *cprm)
 
        has_dumped = 1;
 
-       offset += sizeof(elf);                          /* Elf header */
+       offset += sizeof(elf);                          /* ELF header */
        offset += segs * sizeof(struct elf_phdr);       /* Program headers */
 
        /* Write notes phdr entry */
index a05eafcacfb271a1f30b633b0b922ec21e178043..05a1471d5283d0be9f91d6a6b0e79e680d4ade1e 100644 (file)
@@ -1540,7 +1540,7 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
        fill_note(&auxv_note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv);
        thread_status_size += notesize(&auxv_note);
 
-       offset = sizeof(*elf);                          /* Elf header */
+       offset = sizeof(*elf);                          /* ELF header */
        offset += segs * sizeof(struct elf_phdr);       /* Program headers */
 
        /* Write notes phdr entry */
index 12af614f33ce45ac88f43de9241ccb349634b5b7..03f5963914a14cfeb95c9c6ab3086b8ae2cb2140 100644 (file)
@@ -339,7 +339,7 @@ static ssize_t __read_vmcore(struct iov_iter *iter, loff_t *fpos)
                        return acc;
        }
 
-       /* Read Elf note segment */
+       /* Read ELF note segment */
        if (*fpos < elfcorebuf_sz + elfnotes_sz) {
                void *kaddr;
 
@@ -1109,7 +1109,7 @@ static int __init process_ptload_program_headers_elf64(char *elfptr,
        ehdr_ptr = (Elf64_Ehdr *)elfptr;
        phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */
 
-       /* Skip Elf header, program headers and Elf note segment. */
+       /* Skip ELF header, program headers and ELF note segment. */
        vmcore_off = elfsz + elfnotes_sz;
 
        for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
@@ -1152,7 +1152,7 @@ static int __init process_ptload_program_headers_elf32(char *elfptr,
        ehdr_ptr = (Elf32_Ehdr *)elfptr;
        phdr_ptr = (Elf32_Phdr*)(elfptr + sizeof(Elf32_Ehdr)); /* PT_NOTE hdr */
 
-       /* Skip Elf header, program headers and Elf note segment. */
+       /* Skip ELF header, program headers and ELF note segment. */
        vmcore_off = elfsz + elfnotes_sz;
 
        for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
@@ -1188,7 +1188,7 @@ static void set_vmcore_list_offsets(size_t elfsz, size_t elfnotes_sz,
        loff_t vmcore_off;
        struct vmcore *m;
 
-       /* Skip Elf header, program headers and Elf note segment. */
+       /* Skip ELF header, program headers and ELF note segment. */
        vmcore_off = elfsz + elfnotes_sz;
 
        list_for_each_entry(m, vc_list, list) {
@@ -1213,7 +1213,7 @@ static int __init parse_crash_elf64_headers(void)
 
        addr = elfcorehdr_addr;
 
-       /* Read Elf header */
+       /* Read ELF header */
        rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr);
        if (rc < 0)
                return rc;
@@ -1269,7 +1269,7 @@ static int __init parse_crash_elf32_headers(void)
 
        addr = elfcorehdr_addr;
 
-       /* Read Elf header */
+       /* Read ELF header */
        rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr);
        if (rc < 0)
                return rc;
@@ -1376,12 +1376,12 @@ static void vmcoredd_write_header(void *buf, struct vmcoredd_data *data,
 }
 
 /**
- * vmcoredd_update_program_headers - Update all Elf program headers
+ * vmcoredd_update_program_headers - Update all ELF program headers
  * @elfptr: Pointer to elf header
  * @elfnotesz: Size of elf notes aligned to page size
  * @vmcoreddsz: Size of device dumps to be added to elf note header
  *
- * Determine type of Elf header (Elf64 or Elf32) and update the elf note size.
+ * Determine type of ELF header (Elf64 or Elf32) and update the elf note size.
  * Also update the offsets of all the program headers after the elf note header.
  */
 static void vmcoredd_update_program_headers(char *elfptr, size_t elfnotesz,
@@ -1439,10 +1439,10 @@ static void vmcoredd_update_program_headers(char *elfptr, size_t elfnotesz,
 
 /**
  * vmcoredd_update_size - Update the total size of the device dumps and update
- * Elf header
+ * ELF header
  * @dump_size: Size of the current device dump to be added to total size
  *
- * Update the total size of all the device dumps and update the Elf program
+ * Update the total size of all the device dumps and update the ELF program
  * headers. Calculate the new offsets for the vmcore list and update the
  * total vmcore size.
  */
@@ -1466,7 +1466,7 @@ static void vmcoredd_update_size(size_t dump_size)
  * @data: dump info.
  *
  * Allocate a buffer and invoke the calling driver's dump collect routine.
- * Write Elf note at the beginning of the buffer to indicate vmcore device
+ * Write ELF note at the beginning of the buffer to indicate vmcore device
  * dump and add the dump to global list.
  */
 int vmcore_add_device_dump(struct vmcoredd_data *data)
index dfc62625cae4e3839696f3efe68eb6dfc8659bad..e3a7acdeef0ed4485c875f9cb176434bf10f8e7a 100644 (file)
@@ -163,7 +163,7 @@ out:
 
 /**
  * build_id_parse_buf - Get build ID from a buffer
- * @buf:      Elf note section(s) to parse
+ * @buf:      ELF note section(s) to parse
  * @buf_size: Size of @buf in bytes
  * @build_id: Build ID parsed from @buf, at least BUILD_ID_SIZE_MAX long
  *
index c26395f42d8e7de927c8bc4323e25a19975744db..3bf019b3f70019412cda27128a7ce00dfedfd453 100644 (file)
@@ -829,7 +829,7 @@ static int rt5677_parse_and_load_dsp(struct rt5677_priv *rt5677, const u8 *buf,
        if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1))
                dev_err(component->dev, "Wrong ELF header prefix\n");
        if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr))
-               dev_err(component->dev, "Wrong Elf header size\n");
+               dev_err(component->dev, "Wrong ELF header size\n");
        if (elf_hdr->e_machine != EM_XTENSA)
                dev_err(component->dev, "Wrong DSP code file\n");
 
index 77058174082d79ddf6f10bf4727df47e879007b5..27a23196d58e10cfdda331095f6016b2c023ec39 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
 
 /*
- * resolve_btfids scans Elf object for .BTF_ids section and resolves
+ * resolve_btfids scans ELF object for .BTF_ids section and resolves
  * its symbols with BTF ID values.
  *
  * Each symbol points to 4 bytes data and is expected to have
index 05c4db355f281bbab1f16e2424c6dd77c5dd8642..67b2f5ff185dc8966eb18b5226fb526112abe985 100644 (file)
@@ -1334,7 +1334,7 @@ static int bpf_object__elf_init(struct bpf_object *obj)
                goto errout;
        }
 
-       /* Elf is corrupted/truncated, avoid calling elf_strptr. */
+       /* ELF is corrupted/truncated, avoid calling elf_strptr. */
        if (!elf_rawdata(elf_getscn(elf, obj->efile.shstrndx), NULL)) {
                pr_warn("elf: failed to get section names strings from %s: %s\n",
                        obj->path, elf_errmsg(-1));
index 75b411fc2c77b60ba81633838668101cbd1e7ff9..3496df332e8e00cc581a6a3d0d02615638ba03cd 100644 (file)
@@ -771,7 +771,7 @@ static int collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char *
                target->rel_ip = usdt_rel_ip;
                target->sema_off = usdt_sema_off;
 
-               /* notes.args references strings from Elf itself, so they can
+               /* notes.args references strings from ELF itself, so they can
                 * be referenced safely until elf_end() call
                 */
                target->spec_str = note.args;
index 41882ae8452e509165a1ce0dc5e305e2f211e910..554289fd6df9ad86846da27ccfb2987260a967f9 100644 (file)
@@ -213,7 +213,7 @@ Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep,
        Elf_Scn *sec = NULL;
        size_t cnt = 1;
 
-       /* Elf is corrupted/truncated, avoid calling elf_strptr. */
+       /* ELF is corrupted/truncated, avoid calling elf_strptr. */
        if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL))
                return NULL;