mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
2a6772ebf0
commit
70e79866ab
@ -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");
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user