[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30063] inadequate error messages on wrong input file
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/30063] inadequate error messages on wrong input file |
Date: |
Tue, 31 Jan 2023 16:53:16 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30063
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
The input files are i386 COFF files. If the linker supports i386 COFF, you
will
get the undefined symbol error for i386 COFF input:
(gdb) bt
#0 undefined_symbol (info=0x655da0 <link_info>, name=0x689a40 "_errno",
abfd=0x688ae0, section=0x68b038, address=73, error=true)
at /export/gnu/import/git/sources/binutils-gdb/ld/ldmain.c:1425
#1 0x000000000045cc39 in bfd_generic_get_relocated_section_contents (
abfd=0x6771e0, link_info=0x655da0 <link_info>, link_order=<optimized out>,
data=<optimized out>, relocatable=false, symbols=<optimized out>)
at /export/gnu/import/git/sources/binutils-gdb/bfd/reloc.c:8452
#2 0x0000000000457084 in default_indirect_link_order (output_bfd=0x6771e0,
info=0x655da0 <link_info>, output_section=0x6783a0, link_order=0x687e28,
generic_linker=generic_linker@entry=false)
at /export/gnu/import/git/sources/binutils-gdb/bfd/linker.c:2656
#3 0x0000000000458f76 in _bfd_default_link_order (abfd=abfd@entry=0x6771e0,
info=info@entry=0x655da0 <link_info>, sec=sec@entry=0x6783a0,
link_order=link_order@entry=0x687e28)
at /export/gnu/import/git/sources/binutils-gdb/bfd/linker.c:2475
#4 0x000000000049ce06 in bfd_elf_final_link (abfd=<optimized out>,
info=<optimized out>)
at /export/gnu/import/git/sources/binutils-gdb/bfd/elflink.c:12801
#5 0x000000000041cab9 in ldwrite ()
at /export/gnu/import/git/sources/binutils-gdb/ld/ldwrite.c:545
#6 0x0000000000404a86 in main (argc=<optimized out>, argv=<optimized out>)
at /export/gnu/import/git/sources/binutils-gdb/ld/ldmain.c:531
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/30063] New: inadequate error messages on wrong input file, stsp at users dot sourceforge.net, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file, nickc at redhat dot com, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file, stsp at users dot sourceforge.net, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file, nickc at redhat dot com, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file, stsp at users dot sourceforge.net, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file, nickc at redhat dot com, 2023/01/31
- [Bug ld/30063] inadequate error messages on wrong input file,
hjl.tools at gmail dot com <=
- [Bug ld/30063] inadequate error messages on wrong input file, stsp at users dot sourceforge.net, 2023/01/31