Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ELF: fix all "Elf" typos

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>

authored by

Alexey Dobriyan and committed by
Andrew Morton
70e79866 2a6772eb

+26 -26
+1 -1
arch/mips/boot/tools/relocs.c
··· 245 245 die("Unknown ELF version\n"); 246 246 247 247 if (ehdr.e_ehsize != sizeof(Elf_Ehdr)) 248 - die("Bad Elf header size\n"); 248 + die("Bad ELF header size\n"); 249 249 250 250 if (ehdr.e_phentsize != sizeof(Elf_Phdr)) 251 251 die("Bad program header entry\n");
+1 -1
arch/um/os-Linux/elf_aux.c
··· 2 2 /* 3 3 * arch/um/kernel/elf_aux.c 4 4 * 5 - * Scan the Elf auxiliary vector provided by the host to extract 5 + * Scan the ELF auxiliary vector provided by the host to extract 6 6 * information about vsyscall-page, etc. 7 7 * 8 8 * Copyright (C) 2004 Fujitsu Siemens Computers GmbH
+1 -1
arch/x86/tools/relocs.c
··· 406 406 if (ehdr.e_version != EV_CURRENT) 407 407 die("Unknown ELF version\n"); 408 408 if (ehdr.e_ehsize != sizeof(Elf_Ehdr)) 409 - die("Bad Elf header size\n"); 409 + die("Bad ELF header size\n"); 410 410 if (ehdr.e_phentsize != sizeof(Elf_Phdr)) 411 411 die("Bad program header entry\n"); 412 412 if (ehdr.e_shentsize != sizeof(Elf_Shdr))
+2 -2
drivers/remoteproc/remoteproc_coredump.c
··· 249 249 return; 250 250 251 251 if (class == ELFCLASSNONE) { 252 - dev_err(&rproc->dev, "Elf class is not set\n"); 252 + dev_err(&rproc->dev, "ELF class is not set\n"); 253 253 return; 254 254 } 255 255 ··· 361 361 return; 362 362 363 363 if (class == ELFCLASSNONE) { 364 - dev_err(&rproc->dev, "Elf class is not set\n"); 364 + dev_err(&rproc->dev, "ELF class is not set\n"); 365 365 return; 366 366 } 367 367
+2 -2
drivers/remoteproc/remoteproc_elf_loader.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 /* 3 - * Remote Processor Framework Elf loader 3 + * Remote Processor Framework ELF loader 4 4 * 5 5 * Copyright (C) 2011 Texas Instruments, Inc. 6 6 * Copyright (C) 2011 Google, Inc. ··· 39 39 const char *name = rproc->firmware; 40 40 struct device *dev = &rproc->dev; 41 41 /* 42 - * Elf files are beginning with the same structure. Thus, to simplify 42 + * ELF files are beginning with the same structure. Thus, to simplify 43 43 * header parsing, we can use the elf32_hdr one for both elf64 and 44 44 * elf32. 45 45 */
+1 -1
fs/binfmt_elf.c
··· 2058 2058 2059 2059 has_dumped = 1; 2060 2060 2061 - offset += sizeof(elf); /* Elf header */ 2061 + offset += sizeof(elf); /* ELF header */ 2062 2062 offset += segs * sizeof(struct elf_phdr); /* Program headers */ 2063 2063 2064 2064 /* Write notes phdr entry */
+1 -1
fs/binfmt_elf_fdpic.c
··· 1540 1540 fill_note(&auxv_note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv); 1541 1541 thread_status_size += notesize(&auxv_note); 1542 1542 1543 - offset = sizeof(*elf); /* Elf header */ 1543 + offset = sizeof(*elf); /* ELF header */ 1544 1544 offset += segs * sizeof(struct elf_phdr); /* Program headers */ 1545 1545 1546 1546 /* Write notes phdr entry */
+11 -11
fs/proc/vmcore.c
··· 339 339 return acc; 340 340 } 341 341 342 - /* Read Elf note segment */ 342 + /* Read ELF note segment */ 343 343 if (*fpos < elfcorebuf_sz + elfnotes_sz) { 344 344 void *kaddr; 345 345 ··· 1109 1109 ehdr_ptr = (Elf64_Ehdr *)elfptr; 1110 1110 phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */ 1111 1111 1112 - /* Skip Elf header, program headers and Elf note segment. */ 1112 + /* Skip ELF header, program headers and ELF note segment. */ 1113 1113 vmcore_off = elfsz + elfnotes_sz; 1114 1114 1115 1115 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { ··· 1152 1152 ehdr_ptr = (Elf32_Ehdr *)elfptr; 1153 1153 phdr_ptr = (Elf32_Phdr*)(elfptr + sizeof(Elf32_Ehdr)); /* PT_NOTE hdr */ 1154 1154 1155 - /* Skip Elf header, program headers and Elf note segment. */ 1155 + /* Skip ELF header, program headers and ELF note segment. */ 1156 1156 vmcore_off = elfsz + elfnotes_sz; 1157 1157 1158 1158 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { ··· 1188 1188 loff_t vmcore_off; 1189 1189 struct vmcore *m; 1190 1190 1191 - /* Skip Elf header, program headers and Elf note segment. */ 1191 + /* Skip ELF header, program headers and ELF note segment. */ 1192 1192 vmcore_off = elfsz + elfnotes_sz; 1193 1193 1194 1194 list_for_each_entry(m, vc_list, list) { ··· 1213 1213 1214 1214 addr = elfcorehdr_addr; 1215 1215 1216 - /* Read Elf header */ 1216 + /* Read ELF header */ 1217 1217 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr); 1218 1218 if (rc < 0) 1219 1219 return rc; ··· 1269 1269 1270 1270 addr = elfcorehdr_addr; 1271 1271 1272 - /* Read Elf header */ 1272 + /* Read ELF header */ 1273 1273 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr); 1274 1274 if (rc < 0) 1275 1275 return rc; ··· 1376 1376 } 1377 1377 1378 1378 /** 1379 - * vmcoredd_update_program_headers - Update all Elf program headers 1379 + * vmcoredd_update_program_headers - Update all ELF program headers 1380 1380 * @elfptr: Pointer to elf header 1381 1381 * @elfnotesz: Size of elf notes aligned to page size 1382 1382 * @vmcoreddsz: Size of device dumps to be added to elf note header 1383 1383 * 1384 - * Determine type of Elf header (Elf64 or Elf32) and update the elf note size. 1384 + * Determine type of ELF header (Elf64 or Elf32) and update the elf note size. 1385 1385 * Also update the offsets of all the program headers after the elf note header. 1386 1386 */ 1387 1387 static void vmcoredd_update_program_headers(char *elfptr, size_t elfnotesz, ··· 1439 1439 1440 1440 /** 1441 1441 * vmcoredd_update_size - Update the total size of the device dumps and update 1442 - * Elf header 1442 + * ELF header 1443 1443 * @dump_size: Size of the current device dump to be added to total size 1444 1444 * 1445 - * Update the total size of all the device dumps and update the Elf program 1445 + * Update the total size of all the device dumps and update the ELF program 1446 1446 * headers. Calculate the new offsets for the vmcore list and update the 1447 1447 * total vmcore size. 1448 1448 */ ··· 1466 1466 * @data: dump info. 1467 1467 * 1468 1468 * Allocate a buffer and invoke the calling driver's dump collect routine. 1469 - * Write Elf note at the beginning of the buffer to indicate vmcore device 1469 + * Write ELF note at the beginning of the buffer to indicate vmcore device 1470 1470 * dump and add the dump to global list. 1471 1471 */ 1472 1472 int vmcore_add_device_dump(struct vmcoredd_data *data)
+1 -1
lib/buildid.c
··· 163 163 164 164 /** 165 165 * build_id_parse_buf - Get build ID from a buffer 166 - * @buf: Elf note section(s) to parse 166 + * @buf: ELF note section(s) to parse 167 167 * @buf_size: Size of @buf in bytes 168 168 * @build_id: Build ID parsed from @buf, at least BUILD_ID_SIZE_MAX long 169 169 *
+1 -1
sound/soc/codecs/rt5677.c
··· 829 829 if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1)) 830 830 dev_err(component->dev, "Wrong ELF header prefix\n"); 831 831 if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr)) 832 - dev_err(component->dev, "Wrong Elf header size\n"); 832 + dev_err(component->dev, "Wrong ELF header size\n"); 833 833 if (elf_hdr->e_machine != EM_XTENSA) 834 834 dev_err(component->dev, "Wrong DSP code file\n"); 835 835
+1 -1
tools/bpf/resolve_btfids/main.c
··· 1 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 2 2 3 3 /* 4 - * resolve_btfids scans Elf object for .BTF_ids section and resolves 4 + * resolve_btfids scans ELF object for .BTF_ids section and resolves 5 5 * its symbols with BTF ID values. 6 6 * 7 7 * Each symbol points to 4 bytes data and is expected to have
+1 -1
tools/lib/bpf/libbpf.c
··· 1334 1334 goto errout; 1335 1335 } 1336 1336 1337 - /* Elf is corrupted/truncated, avoid calling elf_strptr. */ 1337 + /* ELF is corrupted/truncated, avoid calling elf_strptr. */ 1338 1338 if (!elf_rawdata(elf_getscn(elf, obj->efile.shstrndx), NULL)) { 1339 1339 pr_warn("elf: failed to get section names strings from %s: %s\n", 1340 1340 obj->path, elf_errmsg(-1));
+1 -1
tools/lib/bpf/usdt.c
··· 771 771 target->rel_ip = usdt_rel_ip; 772 772 target->sema_off = usdt_sema_off; 773 773 774 - /* notes.args references strings from Elf itself, so they can 774 + /* notes.args references strings from ELF itself, so they can 775 775 * be referenced safely until elf_end() call 776 776 */ 777 777 target->spec_str = note.args;
+1 -1
tools/perf/util/symbol-elf.c
··· 213 213 Elf_Scn *sec = NULL; 214 214 size_t cnt = 1; 215 215 216 - /* Elf is corrupted/truncated, avoid calling elf_strptr. */ 216 + /* ELF is corrupted/truncated, avoid calling elf_strptr. */ 217 217 if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL)) 218 218 return NULL; 219 219