If a .def file is used to link a DLL, the --image-base and --enable-auto-image-base options are silently disregarded, even if the .def file is missing a BASE directive. The correct behavior should probably be that --image-base should override the .def file, and --enable-auto-image-base should override if a BASE directive is absent (but not otherwise).
Subject: Re: New: --image-base / --enable-auto-image-base silently disregarded if .def used Hi, > If a .def file is used to link a DLL, the --image-base and > --enable-auto-image-base options are silently disregarded, > even if the .def file is missing a BASE directive. The > correct behavior should probably be that --image-base should > override the .def file, and --enable-auto-image-base should override > if a BASE directive is absent (but not otherwise). Please could you try the current binutils sources from the mainline of the CVS repository. It may well be that this bug has already been fixed. If not, please could you provide a small test case that reproduces the problem. Cheers Nick
This should be fixed. http://sourceware.org/ml/binutils/2003-03/msg00256.html Danny
No response from the reporter after more than a year. Anyway, Danny seems confident that the bug is fixed.