bfd/elf.c: more wrap/overlap/overflow weirdness
H.J. Lu
hjl.tools@gmail.com
Sat Aug 21 03:40:00 GMT 2010
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.
More information about the Binutils
mailing list