https://sourceware.org/bugzilla/show_bug.cgi?id=30732
--- Comment #15 from John David Anglin <danglin at gcc dot gnu.org> --- dave@mx3210:~/gnu/binutils/objdir/ld$ gdb tmpdir/alias GNU gdb (Debian 13.2-1) 13.2 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "hppa-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from tmpdir/alias... (gdb) p/x psym1 $1 = 0x11198 (gdb) x/d psym1 0x11198 <weaksym2>: 0 (gdb) break main Breakpoint 1 at 0x10410: file /home/dave/gnu/binutils/src/ld/testsuite/ld-elfweak/aliasmain.c, line 8. (gdb) r Starting program: /home/dave/gnu/binutils/objdir/ld/tmpdir/alias warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. Breakpoint 1, 0x00010410 in main () at /home/dave/gnu/binutils/src/ld/testsuite/ld-elfweak/aliasmain.c:8 8 { (gdb) info shared >From To Syms Read Shared Object Library 0xfae4cec0 0xfae72494 Yes (*) /lib/ld.so.1 0xfaa5741c 0xfaa576f8 Yes tmpdir/alias.so 0xfa28b560 0xfa3e2404 Yes (*) /lib/hppa-linux-gnu/libc.so.6 (*): Shared library is missing debugging information. (gdb) x/d psym1 0x11198 <weaksym2>: 123 (gdb) c Continuing. value via psym1: 123, via psym2: 123, strong 123 [Inferior 1 (process 32061) exited normally] dave@mx3210:~/gnu/binutils/objdir/ld$ nm tmpdir/alias 000105d4 t $$dyncall 00011110 D $global$ 0001100c d .LC0 00010744 r .Lpmain 00011010 d _DYNAMIC 00011184 A _GLOBAL_OFFSET_TABLE_ 0001074c R _IO_stdin_used w _ITM_deregisterTMCloneTable w _ITM_registerTMCloneTable 00010828 r __FRAME_END__ 0001111c D __TMC_END__ 00010148 r __abi_tag 00011198 B __bss_start 000105e8 T __canonicalize_funcptr_for_compare 00011110 D __data_start 0001058c t __do_global_dtors_aux 00011008 d __do_global_dtors_aux_fini_array_entry 00011114 D __dso_handle 00011004 d __frame_dummy_init_array_entry w __gmon_start__ U __libc_start_main@GLIBC_2.34 00011198 D _edata 000111a8 B _end 00010740 t _end_fini 000103dc t _end_init 00010724 T _fini 000103c4 T _init 00010458 T _start 0001119c b completed.0 00011110 W data_start 000104f0 t deregister_tm_clones 000111a0 b fixup_plabel.0 000105c0 t frame_dummy 000104a0 t gmon_initializer 00010408 T main ffffffec a mrp_slot U printf@GLIBC_2.2 00011118 D psym1 0001111c D psym2 ffffffec a r31_slot 00010534 t register_tm_clones fffffff0 a sr0_slot 00011198 B strongsym 00011198 V weaksym1 00011198 V weaksym2 I suspect you have a binding issue in ld.so.1. -- You are receiving this mail because: You are on the CC list for the bug.