https://sourceware.org/bugzilla/show_bug.cgi?id=29497
Bug ID: 29497
Summary: `x86_64-w64-mingw32-dlltool -m i386` doesn't produce a
fully i386 importlib
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: mh-sourceware at glandium dot org
Target Milestone: ---
```
$ cat <<EOF >foo.def
LIBRARY foo.dll
EXPORTS
foo
EOF
$ x86_64-w64-mingw32-dlltool -m i386 -l foo.lib -d foo.def
$ objdump -a foo.lib
In archive foo.lib:
dxkgt.o: file format pe-x86-64
rw-r--r-- 0/0 566 Aug 16 07:10 2022 dxkgt.o
dxkgh.o: file format pe-x86-64
rw-r--r-- 0/0 633 Aug 16 07:10 2022 dxkgh.o
dxkgs00000.o: file format pe-i386
rw-r--r-- 0/0 578 Aug 16 07:10 2022 dxkgs00000.o
```
Workaround:
```
$ x86_64-w64-mingw32-dlltool -m i386 -f --32 -l foo.lib -d foo.def
$ objdump -a foo.lib
In archive foo.lib:
dblgt.o: file format pe-i386
rw-r--r-- 0/0 566 Aug 16 07:11 2022 dblgt.o
dblgh.o: file format pe-i386
rw-r--r-- 0/0 633 Aug 16 07:11 2022 dblgh.o
dblgs00000.o: file format pe-i386
rw-r--r-- 0/0 578 Aug 16 07:11 2022 dblgs00000.o
```
--
You are receiving this mail because:
You are on the CC list for the bug.