This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bfd/elf.c: more wrap/overlap/overflow weirdness
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 20 Aug 2010 20:33:02 -0700
- Subject: Re: bfd/elf.c: more wrap/overlap/overflow weirdness
- References: <201008201945.o7KJjjt6018645@greed.delorie.com>
On Fri, Aug 20, 2010 at 12:45 PM, DJ Delorie <dj@redhat.com> wrote:
>
> If .data wraps around 0xffffffff, the next section appended to it
> triggers the "p_end < p_start" test, but the LMA does *not* change,
> making the warning message useless. ?There's also no warning for the
> wrapped section.
>
> This patch checks for the two cases separately - a warning if a
> section's load data wraps, and an extra test to see if the LMA
> actually changes.
>
> Does it even make sense to warn about section wrapping? ?On most small
> MCUs, wrapping is OK, the mcu just keeps going at address zero; and if
> you use a MEMORY directive, you already get the "memory region full"
> message.
>
>
X86 kernel may depend address wrapping.
--
H.J.