This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/3966: 32bit address wrap around doesn't work with 32bit host
On Wed, 7 Feb 2007, Alan Modra wrote:
> * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
> move unless section size is non-zero.
> @@ -4463,8 +4463,11 @@ lang_size_sections_1
> || (os->bfd_section->flags & SEC_THREAD_LOCAL) == 0)
> && (os->bfd_section->flags & SEC_ALLOC) != 0
> && (os->bfd_section->size != 0
> - || os->bfd_section->vma != os->bfd_section->lma
> - || r->last_os != NULL)
> + || (r->last_os == NULL
> + && os->bfd_section->vma != os->bfd_section->lma)
> + || (r->last_os != NULL
> + && dot >= (r->last_os->output_section_statement
> + .bfd_section->vma))
Forgot to compile and test? Mismatching parentheses.
(My autotester blew up.)
brgds, H-P