Bug 754 - --image-base / --enable-auto-image-base silently disregarded if .def used
Summary: --image-base / --enable-auto-image-base silently disregarded if .def used
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: pre-2.15
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-19 06:41 UTC by Huw Rogers
Modified: 2022-06-22 06:23 UTC (History)
1 user (show)

See Also:
Host: i386-pc-mingw32
Target: i386-pc-mingw32
Build: i386-pc-mingw32
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huw Rogers 2005-02-19 06:41:34 UTC
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).
Comment 1 Nick Clifton 2005-02-21 17:43:16 UTC
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


Comment 2 Danny Smith 2005-02-23 08:28:58 UTC
This should be fixed.
http://sourceware.org/ml/binutils/2003-03/msg00256.html

Danny
Comment 3 Ben Elliston 2006-03-28 04:54:42 UTC
No response from the reporter after more than a year.  Anyway, Danny seems
confident that the bug is fixed.