diff options
| author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-05-27 20:47:46 +0000 |
|---|---|---|
| committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-05-29 23:00:12 +0000 |
| commit | 630da022cb07d67ab53b4e9335352e44e9b7c5e2 (patch) | |
| tree | ffed7a6424b8e45616980fdbd0b88964185f6b80 | |
| parent | a1950a07583f63f220f30ba7d99ceb619b80ecce (diff) | |
| download | glibc-630da022cb07d67ab53b4e9335352e44e9b7c5e2.tar.xz glibc-630da022cb07d67ab53b4e9335352e44e9b7c5e2.zip | |
Fix misspellings in elf/ -- BZ 25337
Applying this commit results in bit-identical libc.so.6.
The elf/ld-linux-x86-64.so.2 does change, but only in .note.gnu.build-id
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
| -rw-r--r-- | elf/Makefile | 8 | ||||
| -rw-r--r-- | elf/cache.c | 2 | ||||
| -rw-r--r-- | elf/dl-cache.c | 2 | ||||
| -rw-r--r-- | elf/dl-catch.c | 10 | ||||
| -rw-r--r-- | elf/dl-dst.h | 2 | ||||
| -rw-r--r-- | elf/dl-find_object.c | 2 | ||||
| -rw-r--r-- | elf/dl-fptr.c | 2 | ||||
| -rw-r--r-- | elf/dl-load.c | 4 | ||||
| -rw-r--r-- | elf/dl-minimal.c | 2 | ||||
| -rw-r--r-- | elf/dl-profile.c | 6 | ||||
| -rw-r--r-- | elf/dl-support.c | 2 | ||||
| -rw-r--r-- | elf/dl-tls.c | 2 | ||||
| -rw-r--r-- | elf/dl-version.c | 2 | ||||
| -rw-r--r-- | elf/dynamic-link.h | 2 | ||||
| -rw-r--r-- | elf/elf.h | 4 | ||||
| -rw-r--r-- | elf/ldconfig.c | 4 | ||||
| -rw-r--r-- | elf/reldep.c | 2 | ||||
| -rw-r--r-- | elf/reldep2.c | 2 | ||||
| -rw-r--r-- | elf/reldep3.c | 2 | ||||
| -rw-r--r-- | elf/reldep5.c | 2 | ||||
| -rw-r--r-- | elf/rtld.c | 6 | ||||
| -rw-r--r-- | elf/sprof.c | 6 | ||||
| -rw-r--r-- | elf/tst-leaks1.c | 2 | ||||
| -rw-r--r-- | elf/tst-nodelete-dlclose-dso.c | 2 | ||||
| -rw-r--r-- | elf/tst-nodelete-dlclose-plugin.c | 2 | ||||
| -rw-r--r-- | elf/tst-pldd.c | 2 | ||||
| -rw-r--r-- | elf/tst-protected1a.c | 2 | ||||
| -rw-r--r-- | elf/tst-protected1b.c | 2 | ||||
| -rw-r--r-- | elf/tst-tls-manydynamic.c | 2 | ||||
| -rw-r--r-- | elf/tst-tls20.c | 12 | ||||
| -rw-r--r-- | elf/vismain.c | 2 |
31 files changed, 52 insertions, 52 deletions
diff --git a/elf/Makefile b/elf/Makefile index 7430453a6b..264737110b 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -2723,7 +2723,7 @@ $(objpfx)tst-tls-manydynamic0mod-dep.so: $(objpfx)tst-tls-manydynamic1mod-dep.so # Double dependencies. $(objpfx)tst-tls-manydynamic2mod-dep.so: $(objpfx)tst-tls-manydynamic3mod-dep.so \ $(objpfx)tst-tls-manydynamic4mod-dep.so -# Double dependencies with each dependency depent of another module. +# Double dependencies with each dependency dependent of another module. $(objpfx)tst-tls-manydynamic5mod-dep.so: $(objpfx)tst-tls-manydynamic6mod-dep.so \ $(objpfx)tst-tls-manydynamic7mod-dep.so $(objpfx)tst-tls-manydynamic6mod-dep.so: $(objpfx)tst-tls-manydynamic8mod-dep.so @@ -2733,7 +2733,7 @@ $(objpfx)tst-tls-manydynamic9mod-dep.so: $(objpfx)tst-tls-manydynamic10mod-dep.s $(objpfx)tst-tls-manydynamic11mod-dep.so $(objpfx)tst-tls-manydynamic10mod-dep.so: $(objpfx)tst-tls-manydynamic12mod-dep.so $(objpfx)tst-tls-manydynamic12mod-dep.so: $(objpfx)tst-tls-manydynamic13mod-dep.so -# Long chain with two double depedencies in the middle +# Long chain with two double dependencies in the middle $(objpfx)tst-tls-manydynamic14mod-dep.so: $(objpfx)tst-tls-manydynamic15mod-dep.so $(objpfx)tst-tls-manydynamic15mod-dep.so: $(objpfx)tst-tls-manydynamic16mod-dep.so \ $(objpfx)tst-tls-manydynamic17mod-dep.so @@ -2747,7 +2747,7 @@ LDFLAGS-tst-tls-manydynamic0mod-dep-bad.so = -Wl,--no-as-needed $(objpfx)tst-tls-manydynamic1mod-dep-bad.so: $(objpfx)tst-tls-manydynamic2mod-dep-bad.so \ $(objpfx)tst-tls20mod-bad.so LDFLAGS-tst-tls-manydynamic1mod-dep-bad.so = -Wl,--no-as-needed -# Double dependencies with each dependency depent of another module. +# Double dependencies with each dependency dependent of another module. $(objpfx)tst-tls-manydynamic3mod-dep-bad.so: $(objpfx)tst-tls-manydynamic4mod-dep-bad.so \ $(objpfx)tst-tls-manydynamic5mod-dep-bad.so LDFLAGS-tst-tls-manydynamic3mod-dep-bad.so = -Wl,--no-as-needed @@ -2763,7 +2763,7 @@ $(objpfx)tst-tls-manydynamic7mod-dep-bad.so: $(objpfx)tst-tls-manydynamic9mod-de LDFLAGS-tst-tls-manydynamic7mod-dep-bad.so = -Wl,--no-as-needed $(objpfx)tst-tls-manydynamic9mod-dep-bad.so: $(objpfx)tst-tls20mod-bad.so LDFLAGS-tst-tls-manydynamic9mod-dep-bad.so = -Wl,--no-as-needed -# Long chain with two double depedencies in the middle +# Long chain with two double dependencies in the middle $(objpfx)tst-tls-manydynamic10mod-dep-bad.so: $(objpfx)tst-tls-manydynamic11mod-dep-bad.so LDFLAGS-tst-tls-manydynamic10mod-dep-bad.so = -Wl,--no-as-needed $(objpfx)tst-tls-manydynamic11mod-dep-bad.so: $(objpfx)tst-tls-manydynamic12mod-dep-bad.so \ diff --git a/elf/cache.c b/elf/cache.c index 83e6b71349..8149f889ba 100644 --- a/elf/cache.c +++ b/elf/cache.c @@ -66,7 +66,7 @@ glibc_hwcaps_subdirectory_name (const struct glibc_hwcaps_subdirectory *dir) return dir->name->string; } -/* Linked list of known hwcaps subdirecty names. */ +/* Linked list of known hwcaps subdirectory names. */ static struct glibc_hwcaps_subdirectory *hwcaps; struct glibc_hwcaps_subdirectory * diff --git a/elf/dl-cache.c b/elf/dl-cache.c index 631286832d..804bf23222 100644 --- a/elf/dl-cache.c +++ b/elf/dl-cache.c @@ -457,7 +457,7 @@ _dl_load_cache_lookup (const char *name) /* The old-format part of the cache is bogus as well if the endianness does not match. (But it is unclear how the new header can be located if the - endianess does not match.) */ + endianness does not match.) */ cache = (void *) -1; cache_new = (void *) -1; __munmap (file, cachesize); diff --git a/elf/dl-catch.c b/elf/dl-catch.c index a47ed4892d..0aa04ce594 100644 --- a/elf/dl-catch.c +++ b/elf/dl-catch.c @@ -109,7 +109,7 @@ _dl_signal_exception (int errcode, struct dl_exception *exception, rtld_hidden_def (_dl_signal_exception) void -_dl_signal_error (int errcode, const char *objname, const char *occation, +_dl_signal_error (int errcode, const char *objname, const char *occasion, const char *errstring) { struct rtld_catch *lcatch = get_catch (); @@ -126,7 +126,7 @@ _dl_signal_error (int errcode, const char *objname, const char *occation, __longjmp (lcatch->env[0].__jmpbuf, 1); } else - fatal_error (errcode, objname, occation, errstring); + fatal_error (errcode, objname, occasion, errstring); } rtld_hidden_def (_dl_signal_error) @@ -162,12 +162,12 @@ _dl_signal_cexception (int errcode, struct dl_exception *exception, } void -_dl_signal_cerror (int errcode, const char *objname, const char *occation, +_dl_signal_cerror (int errcode, const char *objname, const char *occasion, const char *errstring) { if (__builtin_expect (GLRO(dl_debug_mask) & ~(DL_DEBUG_STATISTICS), 0)) - _dl_debug_printf ("%s: error: %s: %s (%s)\n", objname, occation, + _dl_debug_printf ("%s: error: %s: %s (%s)\n", objname, occasion, errstring, receiver ? "continued" : "fatal"); if (receiver) @@ -178,7 +178,7 @@ _dl_signal_cerror (int errcode, const char *objname, const char *occation, (*receiver) (errcode, objname, errstring); } else - _dl_signal_error (errcode, objname, occation, errstring); + _dl_signal_error (errcode, objname, occasion, errstring); } void diff --git a/elf/dl-dst.h b/elf/dl-dst.h index b40d5b0f55..6940f140ec 100644 --- a/elf/dl-dst.h +++ b/elf/dl-dst.h @@ -1,4 +1,4 @@ -/* Handling of dynamic sring tokens. +/* Handling of dynamic string tokens. Copyright (C) 1999-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. diff --git a/elf/dl-find_object.c b/elf/dl-find_object.c index 2ced2f3510..928eb499cc 100644 --- a/elf/dl-find_object.c +++ b/elf/dl-find_object.c @@ -312,7 +312,7 @@ _dlfo_mappings_active_segment (uint64_t start_version) return _dlfo_loaded_mappings[start_version & 1]; } -/* Searches PC amoung the address-sorted array [FIRST1, FIRST1 + +/* Searches PC among the address-sorted array [FIRST1, FIRST1 + SIZE). Assumes PC >= FIRST1->map_start. Returns a pointer to the element that contains PC, or NULL if there is no such element. */ static inline struct dl_find_object_internal * diff --git a/elf/dl-fptr.c b/elf/dl-fptr.c index 35b5b96cf9..536ad17089 100644 --- a/elf/dl-fptr.c +++ b/elf/dl-fptr.c @@ -230,7 +230,7 @@ _dl_make_fptr (struct link_map *map, const ElfW(Sym) *sym, if (__builtin_expect (COMPARE_AND_SWAP (&ftab[symidx], (ElfW(Addr)) NULL, fdesc), 1)) { - /* Noone has updated the entry and the new function + /* No one has updated the entry and the new function descriptor has been installed. */ #if 0 const char *strtab diff --git a/elf/dl-load.c b/elf/dl-load.c index 6a0d85eaf8..9a87fda9c9 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -44,7 +44,7 @@ long respectively. I.e., even with a file which has 10 program header entries we only have to read 372B/624B respectively. Add to this a bit of margin for program notes and reading 512B and 832B - for 32-bit and 64-bit files respecitvely is enough. If this + for 32-bit and 64-bit files respectively is enough. If this heuristic should really fail for some file the code in `_dl_map_object_from_fd' knows how to recover. */ struct filebuf @@ -270,7 +270,7 @@ _dl_dst_count (const char *input) least equal to the value returned by DL_DST_REQUIRED. Note that it is possible for a DT_NEEDED, DT_AUXILIARY, and DT_FILTER entries to have colons, but we treat those as literal colons here, not as path - list delimeters. */ + list delimiters. */ char * _dl_dst_substitute (struct link_map *l, const char *input, char *result) { diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c index abda453c92..578bf84c20 100644 --- a/elf/dl-minimal.c +++ b/elf/dl-minimal.c @@ -77,7 +77,7 @@ __rtld_malloc_init_real (struct link_map *main_map) /* We cannot use relocations and initializers for this because the changes made by __rtld_malloc_init_stubs break REL-style (non-RELA) relocations that depend on the previous pointer - contents. Also avoid direct relocation depedencies for the + contents. Also avoid direct relocation dependencies for the malloc symbols so this function can be called before the final rtld relocation (which enables RELRO, after which the pointer variables cannot be written to). */ diff --git a/elf/dl-profile.c b/elf/dl-profile.c index d8345da22e..8be0065fbd 100644 --- a/elf/dl-profile.c +++ b/elf/dl-profile.c @@ -38,7 +38,7 @@ /* The LD_PROFILE feature has to be implemented different to the normal profiling using the gmon/ functions. The problem is that an - arbitrary amount of processes simulataneously can be run using + arbitrary amount of processes simultaneously can be run using profiling and all write the results in the same file. To provide this mechanism one could implement a complicated mechanism to merge the content of two profiling runs or one could extend the file @@ -177,7 +177,7 @@ static unsigned int log_hashfraction; -/* Set up profiling data to profile object desribed by MAP. The output +/* Set up profiling data to profile object described by MAP. The output file is found (or created) in OUTPUT_DIR. */ void _dl_start_profile (void) @@ -218,7 +218,7 @@ _dl_start_profile (void) } /* Now we can compute the size of the profiling data. This is done - with the same formulars as in `monstartup' (see gmon.c). */ + with the same formulas as in `monstartup' (see gmon.c). */ running = 0; lowpc = ROUNDDOWN (mapstart + GL(dl_profile_map)->l_addr, HISTFRACTION * sizeof (HISTCOUNTER)); diff --git a/elf/dl-support.c b/elf/dl-support.c index 322599916f..44a54dea07 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -206,7 +206,7 @@ struct link_map *_dl_sysinfo_map; #include <dl-vdso-setup.c> /* During the program run we must not modify the global data of - loaded shared object simultanously in two threads. Therefore we + loaded shared object simultaneously in two threads. Therefore we protect `_dl_open' and `_dl_close' in dl-close.c. This must be a recursive lock since the initializer function of diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 4ef7bc3f1e..99b83ca696 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -233,7 +233,7 @@ _dl_determine_tlsoffset (void) and an alignment requirement. The GNU ld computes the alignment requirements for the data at the positions *in the file*, though. I.e, it is not simply possible to allocate a block with the size - of the TLS program header entry. The data is layed out assuming + of the TLS program header entry. The data is laid out assuming that the first byte of the TLS block fulfills p_vaddr mod p_align == &TLS_BLOCK mod p_align diff --git a/elf/dl-version.c b/elf/dl-version.c index 3dbc6aa798..5b8693de04 100644 --- a/elf/dl-version.c +++ b/elf/dl-version.c @@ -160,7 +160,7 @@ _dl_check_map_versions (struct link_map *map, int verbose, int trace_mode) /* Pointer to dynamic section with definitions. */ ElfW(Dyn) *def; /* We need to find out which is the highest version index used - in a dependecy. */ + in a dependency. */ unsigned int ndx_high = 0; struct dl_exception exception; /* Initialize to make the compiler happy. */ diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index ccb78525ed..e7f755fc75 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -73,7 +73,7 @@ elf_machine_lazy_rel (struct link_map *map, struct r_scope_elem *scope[], /* On some machines, notably SPARC, DT_REL* includes DT_JMPREL in its range. Note that according to the ELF spec, this is completely legal! - We are guarenteed that we have one of three situations. Either DT_JMPREL + We are guaranteed that we have one of three situations. Either DT_JMPREL comes immediately after DT_REL*, or there is overlap and DT_JMPREL consumes precisely the very end of the DT_REL*, or DT_JMPREL and DT_REL* are completely separate and there is a gap between them. */ @@ -210,7 +210,7 @@ typedef struct #define EM_68HC12 53 /* Motorola M68HC12 */ #define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator */ #define EM_PCP 55 /* Siemens PCP */ -#define EM_NCPU 56 /* Sony nCPU embeeded RISC */ +#define EM_NCPU 56 /* Sony nCPU embedded RISC */ #define EM_NDR1 57 /* Denso NDR1 microprocessor */ #define EM_STARCORE 58 /* Motorola Start*Core processor */ #define EM_ME16 59 /* Toyota ME16 processor */ @@ -559,7 +559,7 @@ typedef struct /* Possible bitmasks for si_flags. */ #define SYMINFO_FLG_DIRECT 0x0001 /* Direct bound symbol */ -#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-thru symbol for translator */ +#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-through symbol for translator */ #define SYMINFO_FLG_COPY 0x0004 /* Symbol is a copy-reloc */ #define SYMINFO_FLG_LAZYLOAD 0x0008 /* Symbol bound to object to be lazy loaded */ diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 2fc45ad825..349b735670 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -631,7 +631,7 @@ out: - search for libraries which will be added to the cache - create symbolic links to the soname for each library - This has to be done separatly for each directory. + This has to be done separately for each directory. To keep track of which libraries to add to the cache and which links to create, we save a list of all libraries. @@ -875,7 +875,7 @@ search_dir (const struct dir_entry *entry) or downgrade. The problems will arise because ldconfig will, depending on directory ordering, creat symlinks against libfoo.so e.g. libfoo.so.1.2 -> libfoo.so, but when libfoo.so is removed - (typically by the removal of a development pacakge not required + (typically by the removal of a development package not required for the runtime) it will break the libfoo.so.1.2 symlink and the application will fail to start. */ const char *real_base_name = basename (real_file_name); diff --git a/elf/reldep.c b/elf/reldep.c index adabc0d5d5..f4e2eedf19 100644 --- a/elf/reldep.c +++ b/elf/reldep.c @@ -93,7 +93,7 @@ main (void) exit (1); } - /* The variable now must have its originial value. */ + /* The variable now must have its original value. */ if (*vp != 0) { puts ("variable \"some_var\" not reset"); diff --git a/elf/reldep2.c b/elf/reldep2.c index ba5ab222f9..f5416debb0 100644 --- a/elf/reldep2.c +++ b/elf/reldep2.c @@ -78,7 +78,7 @@ main (void) exit (1); } - /* The variable now must have its originial value. */ + /* The variable now must have its original value. */ if (*vp != 42) { puts ("variable \"some_var\" reset"); diff --git a/elf/reldep3.c b/elf/reldep3.c index 05013d3509..ea6a10bd0d 100644 --- a/elf/reldep3.c +++ b/elf/reldep3.c @@ -78,7 +78,7 @@ main (void) exit (1); } - /* The variable now must have its originial value. */ + /* The variable now must have its original value. */ if (*vp != 0) { puts ("variable \"some_var\" not reset"); diff --git a/elf/reldep5.c b/elf/reldep5.c index 881d519ff6..236f9f85e2 100644 --- a/elf/reldep5.c +++ b/elf/reldep5.c @@ -57,7 +57,7 @@ main (void) puts ("function \"call_me\" the second time returned wrong result"); exit (1); } - puts ("second call suceeded as well"); + puts ("second call succeeded as well"); /* Close the second object, we are done. */ if (dlclose (h2) != 0) diff --git a/elf/rtld.c b/elf/rtld.c index c1e383b055..8e1f5966c6 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -454,7 +454,7 @@ _dl_start_final (void *arg, struct dl_start_final_info *info) ElfW(Addr) start_addr; /* Do not use an initializer for these members because it would - intefere with __rtld_static_init. */ + interfere with __rtld_static_init. */ GLRO (dl_find_object) = &_dl_find_object; /* If it hasn't happen yet record the startup time. */ @@ -1067,7 +1067,7 @@ load_audit_modules (struct link_map *main_map, struct audit_list *audit_list) } } -/* Check if the executable is not actualy dynamically linked, and +/* Check if the executable is not actually dynamically linked, and invoke it directly in that c |
