This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bfd/elf.c: more wrap/overlap/overflow weirdness


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]