binutils-gdb/ld/testsuite/ld-pe/symbols-ordinals-hints-imports-dlltool.d
Alan Modra 6c41f7a812 Fixes to "PR 31728 testcases"
This brings us down to just these fails for the set of targets I
usually test when making testsuite changes.
aarch64-pe  +FAIL: ld-pe/symbols-ordinals-hints-imports-ld
arm-pe  +FAIL: ld-pe/symbols-ordinals-hints-exports-dlltool
arm-pe  +FAIL: ld-pe/symbols-ordinals-hints-imports-dlltool

The aarch64 one is likely due to the target missing support somewhere.
It is fairly new, I haven't investigated.  The arm-pe fails are due to
arm-pe being a target that adds underscores to symbol names (see
config.bfd) whereas dlltool thinks it does not (see
dlltool.c:asm_prefix).  arm-wince-pe on the other hand doesn't add
underscores.  I would guess the right fix for dlltool is to get this
symbol info from bfd using bfd_get_target_info.

Note I'm not very happy about the creative use of ld_after_inputfile
in symbols-ordinals-hints-imports-ld.d, which is likely to break with
some future run_dump_test change.
2024-07-29 20:01:30 +09:30

28 lines
974 B
Makefile

#source: symbols-ordinals-hints-call-imports.s
#dlltool: -d ${srcdir}/${subdir}/symbols-ordinals-hints.def -l tmpdir/libimports-dlltool.a
#ld: -shared
#ld_after_inputfiles: tmpdir/libimports-dlltool.a
#objdump: -p
# Rules for Import Tables:
# - Ordinal, Hint and Member-Name (what is present) match Ordinal/Name Pointer Table of
# the external DLL (from corresponding symbols-ordinals-hints-exports-*.d test)
# - Symbols in .def file with NONAME keyword have only Ordinal, must no have Hint and Member-Name
# - Symbols in .def file without NONAME keyword have Hint and Member-Name, must not have Ordinal
#...
The Import Tables \(interpreted \.idata section contents\)
vma: Hint Time Forward DLL First
Table Stamp Chain Name Thunk
.*
.*DLL Name:.*
.* Ordinal Hint Member-Name Bound-To
.* <none> 0000 sym1
.* <none> 0001 sym2
.* 1 <none> <none>
.* <none> 0002 sym4
.* <none> 0003 sym5
#pass