This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Return relocation error on unsupported relocation
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Sat, 9 Apr 2011 08:48:53 -0700
- Subject: Re: PATCH: Return relocation error on unsupported relocation
- References: <20110409153857.GA30023@intel.com>
On Sat, Apr 9, 2011 at 8:38 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> I checked in this patch to return relocation error on unsupported
> relocation instead of crash.
>
>
> ? ? ? ? ?const char *name;
> @@ -3896,7 +3901,7 @@ do_relocation:
> ? ? ? ? ?else
> ? ? ? ? ? ?{
> ? ? ? ? ? ? ?(*_bfd_error_handler)
> - ? ? ? ? ? ? ? (_("%B(%A+0x%lx): reloc against `%s': error %d"),
> + ? ? ? ? ? ? ? (_("%B(%A+0x%lx): reloc against `%s': error %r"),
> ? ? ? ? ? ? ? ? input_bfd, input_section,
> ? ? ? ? ? ? ? ? (long) rel->r_offset, name, (int) r);
> ? ? ? ? ? ? ?return FALSE;
>
I reverted this accidental checkin.
--
H.J.