This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Warning for unknown PE section flags.
- To: DJ Delorie <dj at delorie dot com>
- Subject: Re: PATCH: Warning for unknown PE section flags.
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Wed, 21 Feb 2001 11:38:49 -0800
- Cc: bgp at dumballah dot tvnet dot hu, binutils at sourceware dot cygnus dot com
- References: <3A930B1C.C09E2996@pop.tvnet.hu> <20010220163852.B31792@valinux.com> <3A93FD43.D59EF642@pop.tvnet.hu> <20010221102339.A18613@valinux.com> <200102211928.OAA14244@envy.delorie.com>
On Wed, Feb 21, 2001 at 02:28:18PM -0500, DJ Delorie wrote:
>
> > 2001-02-21 H.J. Lu <hjl@gnu.org>
> >
> > * coffcode.h (styp_to_sec_flags): Issue a warning for section
> > flags we don't know what to do instead of abort.
>
> But now bogus objects are silently accepted (well, ld won't issue an
> error exit) rather than being rejected. Is this the right thing to do
> for each of those flags?
I don't know what the best approach is. But I won't call those objects
bogus just because binutils doesn't know what to do. Certainly objdump
and string shouldn't abort on them. Maybe I should check if it is an
image file. If it is an image file, just issue an warning. Otherwise,
warning and abort. Should ld for PE take an image file as input?
--
H.J. Lu (hjl@valinux.com)