XPost: uk.comp.os.linux   
   From: vallor@cultnix.org   
      
   On Fri, 25 Apr 2025 13:05:00 +0200, dillinger    
   wrote in :   
      
   > On 4/25/25 00:01, Lawrence D'Oliveiro wrote:   
   >> On Thu, 24 Apr 2025 08:38:29 +0100, Richard Kettlewell wrote:   
   >>   
   >>> Java Jive writes:   
   >>>>   
   >>>> /opt/lib/ld-linux-x86-64.so.2   
   >>>   
   >>> That’s the runtime linker, not a library.   
   >>   
   >> It’s in a library directory, it has the name extension of a shared   
   >> library, and furthermore, “nm -D” reports it defines symbols like a   
   >> library:   
   >>   
   >> ldo@theon:~> nm -D /lib64/ld-linux-x86-64.so.2 0000000000011ad0 T   
   >> _dl_allocate_tls@@GLIBC_PRIVATE 00000000000118b0 T   
   >> _dl_allocate_tls_init@@GLIBC_PRIVATE 0000000000035a58 D   
   >> _dl_argv@@GLIBC_PRIVATE 0000000000017950 T   
   >> _dl_audit_preinit@@GLIBC_PRIVATE 00000000000179d0 T   
   >> _dl_audit_symbind_alt@@GLIBC_PRIVATE 0000000000002320 T   
   >> _dl_catch_exception@@GLIBC_PRIVATE 0000000000011b10 T   
   >> _dl_deallocate_tls@@GLIBC_PRIVATE 0000000000003440 T   
   >> _dl_debug_state@@GLIBC_PRIVATE 0000000000004660 T   
   >> _dl_exception_create@@GLIBC_PRIVATE 0000000000004730 T   
   >> _dl_exception_create_format@@GLIBC_PRIVATE 0000000000004bb0 T   
   >> _dl_exception_free@@GLIBC_PRIVATE 000000000000d6a0 T   
   >> _dl_fatal_printf@@GLIBC_PRIVATE 000000000000bc50 T   
   >> _dl_find_dso_for_object@@GLIBC_PRIVATE 00000000000117b0 T   
   >> _dl_get_tls_static_info@@GLIBC_PRIVATE 000000000001ad90 T   
   >> _dl_mcount@@GLIBC_2.2.5 00000000000090a0 T   
   >> _dl_rtld_di_serinfo@@GLIBC_PRIVATE 0000000000002120 T   
   >> _dl_signal_error@@GLIBC_PRIVATE 00000000000020c0 T   
   >> _dl_signal_exception@@GLIBC_PRIVATE 0000000000017650 T   
   >> _dl_x86_get_cpu_features@@GLIBC_PRIVATE 0000000000000000 A   
   >> GLIBC_2.2.5 0000000000000000 A GLIBC_2.3 0000000000000000 A   
   >> GLIBC_2.34 0000000000000000 A GLIBC_2.35 0000000000000000 A   
   >> GLIBC_2.4 0000000000000000 A GLIBC_PRIVATE 0000000000035a28 D   
   >> __libc_enable_secure@@GLIBC_PRIVATE 0000000000035a20 D   
   >> __libc_stack_end@@GLIBC_2.2.5 0000000000036bd8 B   
   >> __nptl_initial_report_events@@GLIBC_PRIVATE 0000000000036b78 B   
   >> _r_debug@@GLIBC_2.2.5 000000000002f3a0 R __rseq_flags@@GLIBC_2.35   
   >> 00000000000359e0 D __rseq_offset@@GLIBC_2.35 00000000000359d8 D   
   >> __rseq_size@@GLIBC_2.35 0000000000036000 D   
   >> _rtld_global@@GLIBC_PRIVATE 0000000000035a80 D   
   >> _rtld_global_ro@@GLIBC_PRIVATE 00000000000282d0 T   
   >> __rtld_version_placeholder@GLIBC_2.34 0000000000014a40 T   
   >> __tls_get_addr@@GLIBC_2.3 0000000000012ee0 T   
   >> __tunable_get_val@@GLIBC_PRIVATE 00000000000128a0 T   
   >> __tunable_is_initialized@@GLIBC_PRIVATE   
   >>   
   >> If that’s not enough to make it a “library”, I don’t know what is   
   ...   
   >   
   > could be, but nm follows the link, try file /lib64/ld*   
   >   
   > file /lib64/ld*   
   > /lib64/ld-linux-x86-64.so.2: symbolic link to   
   > ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2   
      
   It's not _just_ a library, it's a very special kind -- a runtime linker:   
      
   _[/tmp/try]_(vallor@lm)🐧_   
   $ touch foo   
   _[/tmp/try]_(vallor@lm)🐧_   
   $ /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /bin/ls   
   foo   
   _[/tmp/try]_(vallor@lm)🐧_   
   $ /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /bin/ls -l   
   total 0   
   -rw-rw-r-- 1 vallor vallor 0 Apr 25 04:40 foo   
      
    ...know any other (mere) library that does that?   
      
   --   
   -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti   
    OS: Linux 6.14.3 Release: Mint 22.1 Mem: 258G   
    "No, I'm from Iowa. I only work in Outer Space."   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|